-
Notifications
You must be signed in to change notification settings - Fork 248
55 lines (51 loc) · 1.59 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on: [push, pull_request]
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: System Setup
shell: bash
run: |
sudo apt update -y
sudo apt install -qq libcurl4-gnutls-dev
- name: Run Tests
run: |
make
sudo make test
macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: System Setup
shell: bash
run: brew install curl
- name: Run Tests
run: |
make
sudo make test
windows:
name: Windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: System Setup
shell: bash
run: |
mkdir -p dockcross
sudo docker run --rm dockcross/windows-x64 > dockcross-windows-x64
cat dockcross-windows-x64
chmod +x dockcross-windows-x64
wget https://curl.haxx.se/download/curl-7.80.0.tar.gz
tar xzf curl-*
CURL_SRC=curl-*
./dockcross-windows-x64 bash -c 'cd '"$CURL_SRC"' && ./configure --prefix="/work/deps/curl" --host=x86_64-w64-mingw32.static --disable-shared --with-schannel --disable-dependency-tracking --enable-threaded-resolver --disable-imap --disable-pop3 --disable-smtp --disable-ldap --disable-mqtt --disable-smb'
./dockcross-windows-x64 bash -c 'cd '"$CURL_SRC"' && make'
./dockcross-windows-x64 bash -c 'cd '"$CURL_SRC"' && make install'
- name: Run Tests
run: |
## if builds pass then its passing for now
./dockcross-windows-x64 make all STATIC=true EXE=true