diff options
Diffstat (limited to '.github/workflows/configure.yml')
-rw-r--r-- | .github/workflows/configure.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml new file mode 100644 index 0000000..2c19e60 --- /dev/null +++ b/.github/workflows/configure.yml | |||
@@ -0,0 +1,46 @@ | |||
1 | name: Configure | ||
2 | on: [push, pull_request] | ||
3 | jobs: | ||
4 | ci-configure: | ||
5 | name: ${{ matrix.name }} | ||
6 | runs-on: ${{ matrix.os }} | ||
7 | strategy: | ||
8 | fail-fast: false | ||
9 | matrix: | ||
10 | include: | ||
11 | - name: Ubuntu GCC | ||
12 | os: ubuntu-latest | ||
13 | compiler: gcc | ||
14 | configure-args: --warn | ||
15 | |||
16 | - name: Ubuntu GCC ISB | ||
17 | os: ubuntu-latest | ||
18 | compiler: gcc | ||
19 | configure-args: --warn | ||
20 | build-dir: "." | ||
21 | src-dir: "." | ||
22 | |||
23 | - name: macOS GCC | ||
24 | os: macos-latest | ||
25 | compiler: gcc-9 | ||
26 | configure-args: --warn | ||
27 | |||
28 | steps: | ||
29 | - name: Checkout repository | ||
30 | uses: actions/checkout@v3 | ||
31 | |||
32 | - name: Generate project files | ||
33 | run: | | ||
34 | [ -d ${{ matrix.build-dir || '../build' }} ] || mkdir ${{ matrix.build-dir || '../build' }} | ||
35 | cd ${{ matrix.build-dir || '../build' }} | ||
36 | ${{ matrix.src-dir || '../zlib' }}/configure ${{ matrix.configure-args }} | ||
37 | env: | ||
38 | CC: ${{ matrix.compiler }} | ||
39 | |||
40 | - name: Compile source code | ||
41 | run: make -j2 | ||
42 | working-directory: ${{ matrix.build-dir }} | ||
43 | |||
44 | - name: Run test cases | ||
45 | run: make test | ||
46 | working-directory: ${{ matrix.build-dir }} | ||