Merge remote-tracking branch 'upstream/mob' #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and test | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
test-x86_64-ubuntu: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: make & test tcc | |
run: ./configure && make && make test -k | |
test-x86_64-osx: | |
runs-on: macos-12 | |
timeout-minutes: 2 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: make & test tcc | |
run: ./configure --config-codesign=no && make && make test -k | |
test-x86_64-win32: | |
runs-on: windows-2019 | |
timeout-minutes: 4 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: make & test tcc | |
shell: cmd | |
run: | | |
set MSYS2_PATH_TYPE=inherit | |
set MSYSTEM=MINGW64 | |
set CHERE_INVOKING=yes | |
C:\msys64\usr\bin\bash -l -c "./configure && make && make test -k" | |
test-x86_64-centos: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
container: quay.io/centos/centos:stream9 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare | |
run: | | |
dnf install git make cmake gcc gcc-c++ binutils glibc-devel valgrind autoconf libtool bison automake libxml2-devel sudo which rpmdevtools rpmlint yum-utils python3 -y | |
- name: make & test tcc | |
run: | | |
./configure | |
make | |
make test -k | |
cat config.h | |
cat config.mak | |
test-armv7-linux: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 6 | |
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 | |
timeout-minutes: 6 | |
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 | |
timeout-minutes: 6 | |
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 |