Skip to content

Instantly share code, notes, and snippets.

@treeform
Created July 11, 2020 16:19
Show Gist options
  • Save treeform/fc1b11de18eac28c68b21ee024c2184f to your computer and use it in GitHub Desktop.
Save treeform/fc1b11de18eac28c68b21ee024c2184f to your computer and use it in GitHub Desktop.
windows github actions build.yaml for nim
name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: windows-2019
steps:
- name: "install choosenim"
id: cache-choosenim
run: curl -OL https://github.com/dom96/choosenim/releases/download/v0.6.0/choosenim-0.6.0_windows_amd64_debug.exe
- name: "install nim"
id: cache-nim
run: .\choosenim-0.6.0_windows_amd64_debug.exe -y devel
- name: "setup nim path"
id: cache-nim-path
run: echo "::add-path::C:\Users\runneradmin\.nimble\bin"
- name: "show nim version"
run: nim -v
- name: "setup nimble"
run: nimble refresh
- uses: actions/checkout@v1
- name: "nimble test"
run: nimble test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment