Skip to content

Commit

Permalink
use iffy action & nim binaries
Browse files Browse the repository at this point in the history
remove caching
  • Loading branch information
melMass committed Jul 8, 2024
1 parent e5cbc79 commit a2ecb6e
Showing 1 changed file with 13 additions and 27 deletions.
40 changes: 13 additions & 27 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test fsnotify

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
test:
Expand All @@ -12,34 +12,20 @@ jobs:
- windows-latest
- macOS-latest
nim-version:
- stable
- devel
- binary:stable
- binary:devel
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v4
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version}}
- name: Setup nim
uses: iffy/install-nim@v5
with:
version: ${{ matrix.nim-version }}

- name: Cache nimble
id: cache-nimble
uses: actions/cache@v4
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('prologue.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-${{ matrix.nim-version}}-
- name: Setup nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim-version }}
- name: Install Packages
run: nimble install -y

- name: Install Packages
run: nimble install -y
- name: Test
run: nimble tests

- name: Test
run: nimble tests

0 comments on commit a2ecb6e

Please sign in to comment.