From 5e86c2c7711a4df56f686fe8fc46bd93093c3f99 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 26 Sep 2024 17:22:00 -0500 Subject: [PATCH] ci: switch to nimble setup --- .github/workflows/build.yml | 17 ++++++++++------- config.nims | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 070b3dd..6b83668 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,26 +8,29 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: jiro4989/setup-nim-action@v1 + - uses: jiro4989/setup-nim-action@v2 with: - nim-version: 2.0.0 + nim-version: 2.0.8 - uses: goto-bus-stop/setup-zig@v2 - name: Bootstrap with installed version - run: nimble install -Y + run: | + nimble install -Y - name: Generate build artifacts - run: nimble release + run: | + nimble setup -l + nim release - name: Create artifact bundles - run: nimble bundle + run: nim bundle - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: artifacts path: | diff --git a/config.nims b/config.nims index c6ffe96..fe9d8e7 100644 --- a/config.nims +++ b/config.nims @@ -5,7 +5,7 @@ task build, "build": task release, "build release assets": version = (gorgeEx "git describe --tags --always --match 'v*'").output - exec fmt"./bin/forge release -v {version} -V" + exec fmt"forge release -v {version} -V" task bundle, "package build assets": withDir "dist":