forge/.github/workflows/build.yml

40 lines
721 B
YAML
Raw Normal View History

2023-09-04 23:24:13 -05:00
name: ⚙️ Build Binaries
on:
workflow_call:
jobs:
build-artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
2023-09-04 23:24:13 -05:00
2024-09-26 17:22:00 -05:00
- uses: jiro4989/setup-nim-action@v2
2023-09-04 23:24:13 -05:00
with:
2024-09-26 17:22:00 -05:00
nim-version: 2.0.8
2023-09-04 23:24:13 -05:00
- uses: goto-bus-stop/setup-zig@v2
- name: Bootstrap with installed version
2024-09-26 17:22:00 -05:00
run: |
nimble install -Y
2023-09-04 23:24:13 -05:00
- name: Generate build artifacts
2024-09-26 17:22:00 -05:00
run:
nimble setup -l
nim release
2023-09-04 23:24:13 -05:00
- name: Create artifact bundles
2024-09-26 17:22:00 -05:00
run: nim bundle
2023-09-04 23:24:13 -05:00
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
dist/*.tar.gz
dist/*.zip