forge/.github/workflows/build.yml

40 lines
723 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:
2024-09-26 17:22:00 -05:00
- uses: actions/checkout@v4
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
2024-09-26 17:22:00 -05:00
- uses: actions/upload-artifact@v4
2023-09-04 23:24:13 -05:00
with:
name: artifacts
path: |
dist/*.tar.gz
dist/*.zip