45 lines
821 B
YAML
45 lines
821 B
YAML
|
|
name: "per-push tests"
|
||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches:
|
||
|
|
- main
|
||
|
|
pull_request:
|
||
|
|
pull_request_target:
|
||
|
|
types:
|
||
|
|
- opened
|
||
|
|
- synchronized
|
||
|
|
- reopened
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
build:
|
||
|
|
runs-on: docker
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: install toolchain
|
||
|
|
run: |
|
||
|
|
apt update
|
||
|
|
apt install -y make
|
||
|
|
apt install -y gcc
|
||
|
|
export CC=$(which gcc)
|
||
|
|
- name: compile
|
||
|
|
run: |
|
||
|
|
make alog-so
|
||
|
|
|
||
|
|
test:
|
||
|
|
runs-on: docker
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: install toolchain
|
||
|
|
run: |
|
||
|
|
apt update
|
||
|
|
apt install -y make
|
||
|
|
apt install -y gcc
|
||
|
|
export CC=$(which gcc)
|
||
|
|
- name: compile
|
||
|
|
run: |
|
||
|
|
make alog-tests
|
||
|
|
|