mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-11-16 09:18:32 -06:00
36 lines
773 B
YAML
36 lines
773 B
YAML
name: 👑 ⚙️ Build Nim Binaries w/ Forge and Atlas
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build-artifact:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: jiro4989/setup-nim-action@v1
|
|
with:
|
|
nim-version: 2.0.0
|
|
|
|
- uses: goto-bus-stop/setup-zig@v2
|
|
|
|
- name: Setup Build Environment
|
|
run: |
|
|
nimble install -Y 'https://github.com/nim-lang/atlas.git@#f7ade65f' forge
|
|
atlas init --deps:.workspace
|
|
atlas install
|
|
|
|
- name: Create artifact bundles
|
|
run: nim release && nim bundle
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: artifacts
|
|
path: |
|
|
dist/*.tar.gz
|
|
dist/*.zip
|
|
|