2024-02-04 16:38:23 +00:00
|
|
|
name: build and test
|
2023-09-06 20:21:15 +00:00
|
|
|
|
2022-10-14 10:31:26 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ mob ]
|
2023-09-06 20:21:15 +00:00
|
|
|
|
2022-10-14 10:31:26 +00:00
|
|
|
jobs:
|
2023-09-06 20:21:15 +00:00
|
|
|
test-x86_64-linux:
|
2022-10-14 13:01:54 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2022-10-14 10:31:26 +00:00
|
|
|
steps:
|
2024-02-11 12:13:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-06 20:21:15 +00:00
|
|
|
- name: make & test tcc
|
|
|
|
run: ./configure && make && make test -k
|
2022-10-14 10:31:26 +00:00
|
|
|
|
2023-09-06 20:21:15 +00:00
|
|
|
test-x86_64-osx:
|
2022-11-12 13:21:17 +00:00
|
|
|
runs-on: macos-11
|
2022-10-14 10:31:26 +00:00
|
|
|
steps:
|
2024-02-11 12:13:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-06 20:21:15 +00:00
|
|
|
- name: make & test tcc
|
2024-02-04 16:38:23 +00:00
|
|
|
run: ./configure --config-codesign=no && make && make test -k
|
2022-10-14 10:31:26 +00:00
|
|
|
|
2023-09-06 20:21:15 +00:00
|
|
|
test-x86_64-win32:
|
|
|
|
runs-on: windows-2019
|
2022-10-14 10:31:26 +00:00
|
|
|
steps:
|
2024-02-11 12:13:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-09-06 20:21:15 +00:00
|
|
|
- name: make & test tcc
|
|
|
|
shell: cmd
|
2022-10-14 10:31:26 +00:00
|
|
|
run: |
|
2023-09-06 20:21:15 +00:00
|
|
|
set MSYS2_PATH_TYPE=inherit
|
|
|
|
set MSYSTEM=MINGW64
|
|
|
|
set CHERE_INVOKING=yes
|
|
|
|
C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k"
|
2024-02-11 12:13:13 +00:00
|
|
|
|
|
|
|
test-armv7-linux:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: uraimo/run-on-arch-action@v2
|
|
|
|
with:
|
|
|
|
arch: armv7
|
|
|
|
distro: ubuntu20.04
|
|
|
|
githubToken: ${{ github.token }}
|
|
|
|
install: |
|
|
|
|
apt-get update -q -y
|
|
|
|
apt-get install -q -y gcc make
|
|
|
|
run: |
|
|
|
|
echo "::endgroup::" && echo "::endgroup::" # missing in 'run-on-arch-action'
|
|
|
|
./configure && make && make test -k
|
|
|
|
|
|
|
|
test-aarch64-linux:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: uraimo/run-on-arch-action@v2
|
|
|
|
with:
|
|
|
|
arch: aarch64
|
|
|
|
distro: ubuntu20.04
|
|
|
|
githubToken: ${{ github.token }}
|
|
|
|
install: |
|
|
|
|
apt-get update -q -y
|
|
|
|
apt-get install -q -y gcc make
|
|
|
|
run: |
|
|
|
|
echo "::endgroup::" && echo "::endgroup::" # missing in 'run-on-arch-action'
|
|
|
|
./configure && make && make test -k
|
|
|
|
|
|
|
|
test-riscv64-linux:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: uraimo/run-on-arch-action@v2
|
|
|
|
with:
|
|
|
|
arch: riscv64
|
|
|
|
distro: ubuntu20.04
|
|
|
|
githubToken: ${{ github.token }}
|
|
|
|
install: |
|
|
|
|
apt-get update -q -y
|
|
|
|
apt-get install -q -y gcc make
|
|
|
|
run: |
|
|
|
|
echo "::endgroup::" && echo "::endgroup::" # missing in 'run-on-arch-action'
|
|
|
|
./configure && make && make test -k
|