2020-07-21 01:06:43 +09:00
|
|
|
name: build
|
|
|
|
on:
|
2022-05-30 23:57:09 +09:00
|
|
|
push:
|
|
|
|
branches: [main]
|
2021-09-05 17:13:34 +09:00
|
|
|
release:
|
|
|
|
types: [published]
|
2020-07-21 01:06:43 +09:00
|
|
|
jobs:
|
|
|
|
main:
|
2021-07-25 19:07:06 +09:00
|
|
|
runs-on: ubuntu-latest
|
2020-07-21 01:06:43 +09:00
|
|
|
steps:
|
2022-09-05 21:47:51 +09:00
|
|
|
- uses: actions/checkout@v3
|
2020-08-08 23:25:52 +09:00
|
|
|
- run: sudo apt-get install -y qemu-user-static
|
2022-06-01 01:07:38 +09:00
|
|
|
- run: sudo bin/build
|
2022-09-05 21:47:51 +09:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-09-05 15:54:36 +09:00
|
|
|
with:
|
2022-05-30 22:11:18 +09:00
|
|
|
name: yama-armhf
|
|
|
|
path: yama-armhf.*
|
2021-09-05 17:13:34 +09:00
|
|
|
release:
|
|
|
|
if: github.event.release.prerelease
|
|
|
|
needs: main
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-05 21:47:51 +09:00
|
|
|
- uses: actions/checkout@v3
|
2022-06-01 11:02:14 +09:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: yama-armhf
|
|
|
|
- uses: actions/github-script@v6
|
2021-09-05 17:13:34 +09:00
|
|
|
with:
|
|
|
|
script: |
|
2022-06-01 11:02:14 +09:00
|
|
|
const release = require("./.github/scripts/release.js");
|
|
|
|
await release({ github, context, glob });
|