diff options
author | Mark Adler <fork@madler.net> | 2022-10-06 21:50:16 -0700 |
---|---|---|
committer | Mark Adler <fork@madler.net> | 2022-10-06 21:59:53 -0700 |
commit | 67eb09a20bac154d658a9aae91f7539202606941 (patch) | |
tree | 17893d54af81f706b6e432fb3c96f8060ecb91d2 /.github/workflows/configure.yml | |
parent | 352cb28d12baf02863ff5d4d96be0587ced419a1 (diff) | |
download | zlib-67eb09a20bac154d658a9aae91f7539202606941.tar.gz zlib-67eb09a20bac154d658a9aae91f7539202606941.tar.bz2 zlib-67eb09a20bac154d658a9aae91f7539202606941.zip |
Add continuous integration workflows. [nmoinvaz]
These workflows will be run to verify that project generation,
source file compilation, and test cases run successfully.
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 }} | ||