Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use iffy action & nim binaries #11

Merged
merged 5 commits into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 16 additions & 29 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 @@ -10,36 +10,23 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
- macOS-13
nim-version:
- stable
- devel
- binary:stable
- nightly:https://github.com/nim-lang/nightlies/releases/tag/latest-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 }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- 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@v1
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
Loading