|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | build-linux: |
12 | | - |
13 | 12 | runs-on: ubuntu-latest |
14 | | - |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + shared: [true, false] |
15 | 16 | steps: |
16 | | - |
17 | 17 | - name: Install packages |
18 | 18 | uses: delgurth/get-package@v6 |
19 | 19 | with: |
20 | 20 | # Space-separated list of packages to install using apt-get. Will only run if on ubuntu. |
21 | | - apt-get: libssl-dev |
22 | | - |
| 21 | + apt-get: libssl-dev cmake binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 |
23 | 22 | - name: Checkout with submodules |
24 | | - uses: actions/checkout@v3 |
25 | | - with: |
26 | | - submodules: 'true' |
27 | | - |
| 23 | + uses: actions/checkout@v4 |
| 24 | + - name: config shared=${{ matrix.shared }} |
| 25 | + run: >- |
| 26 | + cmake |
| 27 | + -Bbuild |
| 28 | + -DBUILD_SHARED_LIBS=${{ matrix.shared }} |
28 | 29 | - name: Compile |
29 | | - run: make |
30 | | - |
31 | | - |
32 | | - build-osx: |
| 30 | + run: cmake --build build |
| 31 | + - name: test |
| 32 | + run: ctest --test-dir build -V |
33 | 33 |
|
| 34 | + build-osx: |
34 | 35 | runs-on: macos-latest |
35 | | - |
36 | 36 | steps: |
37 | | - |
38 | 37 | - name: Checkout with submodules |
39 | | - uses: actions/checkout@v3 |
40 | | - with: |
41 | | - submodules: 'true' |
42 | | - |
| 38 | + uses: actions/checkout@v4 |
| 39 | + - name: config |
| 40 | + run: >- |
| 41 | + cmake |
| 42 | + -Bbuild |
| 43 | + -DENABLE_TESTS=Off |
43 | 44 | - name: Compile |
44 | | - run: CFLAGS="-I$(brew --prefix openssl@1.1)/include/" LDFLAGS="-L$(brew --prefix openssl@1.1)/lib/" make |
| 45 | + run: cmake --build build |
| 46 | +# - name: Compile |
| 47 | +# run: CFLAGS="-I$(brew --prefix openssl@1.1)/include/" LDFLAGS="-L$(brew --prefix openssl@1.1)/lib/" make |
45 | 48 |
|
46 | 49 | build-win64: |
47 | | - |
48 | 50 | runs-on: windows-latest |
49 | | - |
50 | 51 | steps: |
51 | | - |
52 | 52 | - name: Install Cygwin |
53 | 53 | # You may pin to the exact commit or the version. |
54 | 54 | # uses: egor-tensin/setup-cygwin@4f96f9fecb8c952fa32ff791b0a77d93d5191bb4 |
55 | | - uses: egor-tensin/setup-cygwin@v3 |
| 55 | + uses: egor-tensin/setup-cygwin@v4 |
56 | 56 | with: |
57 | 57 | platform: x64 # optional, default is x64 |
58 | 58 | install-dir: c:\tools\cygwin # optional, default is C:\tools\cygwin |
59 | | - packages: gcc-core binutils make zip libssl-devel # optional |
60 | | - |
| 59 | + packages: gcc-core gcc-g++ binutils make zip libssl-devel cmake # optional |
61 | 60 | - name: Checkout with submodules |
62 | | - uses: actions/checkout@v3 |
63 | | - with: |
64 | | - submodules: 'true' |
65 | | - |
| 61 | + uses: actions/checkout@v4 |
| 62 | + shell: C:\tools\cygwin\bin\bash.exe --login '{0}' |
| 63 | + - name: config |
| 64 | + run: >- |
| 65 | + cmake |
| 66 | + -Bbuild |
| 67 | + -DENABLE_TESTS=Off |
| 68 | + shell: C:\tools\cygwin\bin\bash.exe --login '{0}' |
66 | 69 | - name: Compile |
67 | | - run: make |
68 | | - |
69 | | - - name: Compile Windows-only tools and create a ZIP package |
70 | | - run: make zip |
| 70 | + run: cmake --build build |
| 71 | + shell: C:\tools\cygwin\bin\bash.exe --login '{0}' |
| 72 | + - name: pack |
| 73 | + run: cd build cpack -G CYGWIN_BINARY |
| 74 | + shell: C:\tools\cygwin\bin\bash.exe --login '{0}' |
| 75 | +# - name: Compile |
| 76 | +# run: make |
| 77 | +# - name: Compile Windows-only tools and create a ZIP package |
| 78 | +# run: make zip |
| 79 | + |
0 commit comments