2022-06-23 07:39:00 -04:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
2022-07-14 06:35:20 -07:00
|
|
|
- "flake"
|
2022-06-23 07:39:00 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
|
|
|
|
# run workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-06-26 01:08:41 -04:00
|
|
|
matrix_on_mode:
|
2022-06-23 07:39:00 -04:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-26 01:08:41 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-07-10 12:17:18 -07:00
|
|
|
mode: ["", tiny, rel, tinylinux, optlinux]
|
2022-06-23 07:39:00 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2022-10-02 10:04:34 -07:00
|
|
|
- name: support ape bins 1
|
|
|
|
run: sudo cp build/bootstrap/ape.elf /usr/bin/ape
|
|
|
|
|
|
|
|
- name: support ape bins 2
|
|
|
|
run: sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
|
2022-06-23 07:39:00 -04:00
|
|
|
|
2022-06-26 01:08:41 -04:00
|
|
|
- name: make matrix
|
|
|
|
run: V=0 make -j2 MODE=${{ matrix.mode }}
|