libtcc usability improvements
[tinycc.git] / .github / workflows / build.yml
blobe5a8e760c4213a54afa1337e4fffbded236aa94c
1 name: build and test
3 on:
4   push:
5     branches: [ mob ]
7 jobs:
8   test-x86_64-linux:
9     runs-on: ubuntu-20.04
10     timeout-minutes: 2
11     steps:
12     - uses: actions/checkout@v4
13     - name: make & test tcc
14       run: ./configure && make && make test -k
16   test-x86_64-osx:
17     runs-on: macos-11
18     timeout-minutes: 2
19     steps:
20     - uses: actions/checkout@v4
21     - name: make & test tcc
22       run: ./configure --config-codesign=no && make && make test -k
24   test-x86_64-win32:
25     runs-on: windows-2019
26     timeout-minutes: 4
27     steps:
28     - uses: actions/checkout@v4
29     - name: make & test tcc
30       shell: cmd
31       run: |
32         set MSYS2_PATH_TYPE=inherit
33         set MSYSTEM=MINGW64
34         set CHERE_INVOKING=yes
35         C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k"
37   test-armv7-linux:
38     runs-on: ubuntu-20.04
39     timeout-minutes: 6
40     steps:
41     - uses: actions/checkout@v4
42     - uses: uraimo/run-on-arch-action@v2
43       with:
44         arch: armv7
45         distro: ubuntu20.04
46         githubToken: ${{ github.token }}
47         install: |
48           apt-get update -q -y
49           apt-get install -q -y gcc make
50         run: |
51             echo "::endgroup::" && echo "::endgroup::" # missing in 'run-on-arch-action'
52             ./configure && make && make test -k
54   test-aarch64-linux:
55     runs-on: ubuntu-20.04
56     timeout-minutes: 6
57     steps:
58     - uses: actions/checkout@v4
59     - uses: uraimo/run-on-arch-action@v2
60       with:
61         arch: aarch64
62         distro: ubuntu20.04
63         githubToken: ${{ github.token }}
64         install: |
65           apt-get update -q -y
66           apt-get install -q -y gcc make
67         run: |
68             echo "::endgroup::" && echo "::endgroup::" # missing in 'run-on-arch-action'
69             ./configure && make && make test -k
71   test-riscv64-linux:
72     runs-on: ubuntu-20.04
73     timeout-minutes: 6
74     steps:
75     - uses: actions/checkout@v4
76     - uses: uraimo/run-on-arch-action@v2
77       with:
78         arch: riscv64
79         distro: ubuntu20.04
80         githubToken: ${{ github.token }}
81         install: |
82           apt-get update -q -y
83           apt-get install -q -y gcc make
84         run: |
85             echo "::endgroup::" && echo "::endgroup::" # missing in 'run-on-arch-action'
86             ./configure && make && make test -k