add forgejo ci
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
56f87419f1
commit
0827a07975
1 changed files with 44 additions and 0 deletions
44
.forgejo/workflows/test.yml
Normal file
44
.forgejo/workflows/test.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue