Add action #2
Workflow file for this run
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: Actions | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-test-on-x86: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install Packages | |
run: | | |
sudo apt update | |
sudo apt install -y gcc-multilib g++-multilib make | |
- name: Build x86 | |
env: | |
CFLAGS: -m32 | |
CXXFLAGS: -m32 | |
run: | | |
make all | |
- name: Run Tests | |
run: | | |
./bin/sljit_test | |
build-test-on-x64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install Packages | |
run: | | |
sudo apt update | |
sudo apt install -y gcc g++ make | |
- name: Build x64 | |
run: | | |
make all | |
- name: Run Tests | |
run: | | |
./bin/sljit_test | |
build-test-on-armv7: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build in arm32 container | |
uses: uraimo/[email protected] | |
with: | |
arch: armv7 | |
distro: ubuntu_latest | |
# Install deps into the container. With the token, the container will be cached | |
# The image is cached publically like a package | |
githubToken: ${{ github.token }} | |
install: | | |
apt-get update | |
apt-get install -y gcc g++ make | |
run: | | |
make all | |
./bin/sljit_test | |
build-test-on-aarch64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build in arm64 container | |
uses: uraimo/[email protected] | |
with: | |
arch: aarch64 | |
distro: ubuntu22.04 | |
# Install deps into the container. With the token, the container will be cached | |
# The image is cached publically like a package | |
githubToken: ${{ github.token }} | |
install: | | |
apt-get update | |
apt-get install -y gcc g++ make | |
run: | | |
make all | |
./bin/sljit_test |