2022-06-23 11:39:00 +00:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
|
|
|
|
# run workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-06-26 05:08:41 +00:00
|
|
|
matrix_on_mode:
|
2022-06-23 11:39:00 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-06-26 05:08:41 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
mode: ["", tiny, opt]
|
2022-06-23 11:39:00 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: support ape bins
|
|
|
|
run: sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
|
|
|
|
|
2022-06-26 05:08:41 +00:00
|
|
|
- name: make matrix
|
|
|
|
run: V=0 make -j2 MODE=${{ matrix.mode }}
|