Skip to content

Commit ea18f85

Browse files
authored
ci: see if setup-nim is faster than choosenim (#70)
1 parent 0c7769e commit ea18f85

File tree

1 file changed

+19
-24
lines changed

1 file changed

+19
-24
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
# xxx update as needed with latest stable for each branch
13-
branch: ["1.0.8", "1.2.8", "1.4.2", "devel"] # stable currentl at 1.4.2
12+
branch: [version-1-0, version-1-2, version-1-4, devel]
1413
target:
1514
- os: linux
1615
cpu: amd64
@@ -34,6 +33,12 @@ jobs:
3433
builder: windows-2019
3534
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (${{ matrix.branch }})'
3635
runs-on: ${{ matrix.builder }}
36+
37+
defaults:
38+
run:
39+
shell: bash
40+
working-directory: fusion
41+
3742
steps:
3843
- uses: actions/setup-node@v2
3944
- name: Checkout fusion
@@ -49,6 +54,7 @@ jobs:
4954

5055
- name: Install dependencies (Linux i386)
5156
if: runner.os == 'Linux' && matrix.target.cpu == 'i386'
57+
working-directory: ${{ github.workspace }}
5258
run: |
5359
sudo dpkg --add-architecture i386
5460
sudo apt-fast update -qq
@@ -71,15 +77,15 @@ jobs:
7177
7278
chmod 755 external/bin/gcc external/bin/g++
7379
74-
echo "${{ github.workspace }}/external/bin" >> "${GITHUB_PATH}"
80+
echo "$PWD/external/bin" >> "${GITHUB_PATH}"
7581
7682
# - name: Install dependencies (macOS)
7783
# if: runner.os == 'macOS'
7884
# run: brew install <packages here>
7985

8086
- name: Install dependencies (Windows)
8187
if: runner.os == 'Windows'
82-
shell: bash
88+
working-directory: ${{ github.workspace }}
8389
run: |
8490
mkdir external
8591
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
@@ -88,35 +94,24 @@ jobs:
8894
arch=32
8995
fi
9096
curl -L "https://nim-lang.org/download/mingw$arch-6.3.0.7z" -o "external/mingw$arch.7z"
91-
curl -L "https://nim-lang.org/download/windeps.zip" -o external/windeps.zip
9297
7z x "external/mingw$arch.7z" -oexternal/
93-
7z x external/windeps.zip -oexternal/dlls
9498
95-
echo "${{ github.workspace }}/external/mingw$arch/bin" >> "${GITHUB_PATH}"
96-
echo "${{ github.workspace }}/external/dlls" >> "${GITHUB_PATH}"
97-
98-
- name: Setup environment
99-
shell: bash
100-
run: echo "${{ github.workspace }}/nim/bin" >> "${GITHUB_PATH}"
99+
cygpath -aw "external/mingw$arch/bin" >> "${GITHUB_PATH}"
101100
102101
- name: Setup Nim
103-
uses: jiro4989/setup-nim-action@v1
102+
uses: alaviss/setup-nim@0.1.1
104103
with:
105-
nim-version: ${{ matrix.branch }}
106-
no-color: true # --noColor
107-
yes: true # --yes
104+
path: nim
105+
version: ${{ matrix.branch }}
106+
architecture: ${{ matrix.target.cpu }}
108107

109-
- name: Run fusion tests
108+
- name: Run tests
110109
shell: bash
111-
run: |
112-
cd fusion
113-
nimble test
110+
run: nimble test
114111

115-
- name: docs
112+
- name: Build docs
116113
if: matrix.branch == 'devel'
117-
run: |
118-
cd fusion
119-
nimble docs
114+
run: nimble docs
120115

121116
- name: Deploy docs
122117
# to view docs on your own fork: push a gh-pages branch on your fork,

0 commit comments

Comments
 (0)