-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (55 loc) · 1.63 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on: [push, pull_request]
concurrency: # Cancel stale PR builds (but not push builds)
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- os: linux
triple: x86_64-linux-musl
name: linux_x64
- os: macosx
triple: x86_64-apple-darwin14
name: apple_x64
- os: windows
triple: x86_64-w64-mingw32
name: windows_x64
include:
- target:
os: linux
builder: ubuntu-20.04
- target:
os: macosx
builder: macos-11
- target:
os: windows
builder: windows-2019
defaults:
run:
shell: bash
name: '${{ matrix.target.name }}'
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch nimble
uses: robinraju/[email protected]
with:
repository: "nim-lang/nimble"
tag: "latest"
fileName: "nimble-${{matrix.target.name}}.tar.gz"
extract: true
- name: Build nph
run: |
echo "$PWD" >> $GITHUB_PATH
nimble setup -l
nimble build
- name: Check formatting
run: |
find -name "*.nim" ! -path "./tests/before/*" ! -path "./nimbledeps/*" -print0 | xargs -0 -n1 ./nph
git diff
# find -name "*.nim" ! -path "./tests/before/*" ! -path "./nimbledeps/*" -print0 | xargs -0 -n1 ./nph --check