2021-09-30 01:09:36 -04:00
|
|
|
name: Build and run tests
|
|
|
|
|
2021-12-26 16:30:36 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 2 * * *'
|
2021-09-30 01:09:36 -04:00
|
|
|
|
|
|
|
jobs:
|
2021-12-23 11:52:35 -05:00
|
|
|
build-ubuntu-gcc:
|
2021-09-30 01:09:36 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 13:14:45 -04:00
|
|
|
- uses: actions/checkout@v4
|
2021-09-30 01:09:36 -04:00
|
|
|
- name: Build
|
|
|
|
run: make test
|
2021-12-26 15:58:19 -05:00
|
|
|
build-ubuntu-clang:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 13:14:45 -04:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-26 15:58:19 -05:00
|
|
|
- name: Build
|
|
|
|
run: CC=clang CXX=clang++ make test
|
2021-12-23 11:52:35 -05:00
|
|
|
build-musl:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: alpine:latest
|
|
|
|
steps:
|
2023-09-04 13:14:45 -04:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-23 11:52:35 -05:00
|
|
|
- name: Install dependencies
|
2022-03-11 22:03:25 -05:00
|
|
|
run: apk update && apk add build-base python3
|
2021-12-23 11:52:35 -05:00
|
|
|
- name: Build
|
|
|
|
run: make test
|
2022-01-04 06:54:25 -05:00
|
|
|
build-ubuntu-gcc-aarch64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 13:14:45 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-01-04 06:54:25 -05:00
|
|
|
- name: Install dependencies
|
2022-03-11 22:03:25 -05:00
|
|
|
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libgcc-s1-arm64-cross cpp-aarch64-linux-gnu
|
2022-01-04 06:54:25 -05:00
|
|
|
- name: Build
|
|
|
|
run: CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-gcc++ make CONFIG_NATIVE=false
|