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
|
2024-02-14 09:00:22 +00:00
|
|
|
timeout-minutes: 2
|
2022-10-14 10:31:26 +00:00
|
|
|
steps:
|
2024-02-11 12:13:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-10-09 21:15:05 +00:00
|
|
|
- name: make & test tcc (x86_64-linux)
|
2023-09-06 20:21:15 +00:00
|
|
|
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:
|
2024-11-17 20:10:20 +00:00
|
|
|
runs-on: macos-13
|
2024-02-14 09:00:22 +00:00
|
|
|
timeout-minutes: 2
|
2022-10-14 10:31:26 +00:00
|
|
|
steps:
|
2024-02-11 12:13:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-10-09 21:15:05 +00:00
|
|
|
- name: make & test tcc (x86_64-osx)
|
|
|
|
run: ./configure && make && make test -k
|
|
|
|
|
|
|
|
test-aarch64-osx:
|
|
|
|
runs-on: macos-14
|
|
|
|
timeout-minutes: 2
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: make & test tcc (aarch64-osx)
|
|
|
|
run: ./configure && make && make test -k
|
2022-10-14 10:31:26 +00:00
|
|
|
|
2024-10-09 21:15:05 +00:00
|
|
|
test-x86-win32:
|
2023-09-06 20:21:15 +00:00
|
|
|
runs-on: windows-2019
|
2024-10-09 21:15:05 +00:00
|
|
|
timeout-minutes: 6
|
2022-10-14 10:31:26 +00:00
|
|
|
steps:
|
2024-02-11 12:13:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-10-09 21:15:05 +00:00
|
|
|
- name: make & test tcc (x86_64-win32)
|
2023-09-06 20:21:15 +00:00
|
|
|
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-10-09 21:15:05 +00:00
|
|
|
- name: make & test tcc (i386-win32)
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
set MSYS2_PATH_TYPE=inherit
|
|
|
|
set MSYSTEM=MINGW32
|
|
|
|
set CHERE_INVOKING=yes
|
|
|
|
C:\msys64\usr\bin\bash -l -c "./configure && make clean all && make test -k"
|
2024-02-11 12:13:13 +00:00
|
|
|
|
|
|
|
test-armv7-linux:
|
|
|
|
runs-on: ubuntu-20.04
|
2024-02-14 09:00:22 +00:00
|
|
|
timeout-minutes: 6
|
2024-02-11 12:13:13 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: uraimo/run-on-arch-action@v2
|
2024-10-09 21:15:05 +00:00
|
|
|
name: make & test tcc (armv7-linux)
|
2024-02-11 12:13:13 +00:00
|
|
|
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
|
2024-02-14 09:00:22 +00:00
|
|
|
timeout-minutes: 6
|
2024-02-11 12:13:13 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: uraimo/run-on-arch-action@v2
|
2024-10-09 21:15:05 +00:00
|
|
|
name: make & test tcc (aarch64-linux)
|
2024-02-11 12:13:13 +00:00
|
|
|
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
|
2024-02-14 09:00:22 +00:00
|
|
|
timeout-minutes: 6
|
2024-02-11 12:13:13 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: uraimo/run-on-arch-action@v2
|
2024-10-09 21:15:05 +00:00
|
|
|
name: make & test tcc (riscv64-linux)
|
2024-02-11 12:13:13 +00:00
|
|
|
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
|