Skip to content

Commit

Permalink
Another attempt to use the iffy/install-nim GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnovak committed Jul 7, 2024
1 parent 0b42b4d commit 10ed30a
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,20 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
nimversion:
- binary:2.0.6
os:
# - ubuntu-20.04
# - windows-2019
- macOS-12
steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v4
- name: Cache nimble
id: cache-nimble
uses: actions/[email protected]
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-
if: runner.os != 'Windows'

- uses: jiro4989/setup-nim-action@v2
- uses: iffy/install-nim@v5
with:
nim-version: '2.0.6'
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ matrix.nimversion }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install Nim dependencies
run: nimble -y install koi osdialog riff semver winim with
Expand All @@ -60,5 +52,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: gridmonger-v${{ env.VERSION }}-macos
path: dist/macos/Gridmonger.app
path: dist/macos
overwrite: true

0 comments on commit 10ed30a

Please sign in to comment.