Skip to content

Commit 2cabf49

Browse files
committed
update github actions
1 parent 9086b8f commit 2cabf49

File tree

2 files changed

+7
-26
lines changed

2 files changed

+7
-26
lines changed

.github/workflows/build-full.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
version: ${{ matrix.nimversion }}
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
- name: Install Atlas
27+
- name: Install Nimble
2828
run: |
29+
nimble install nimble
2930
nim -v
3031
nimble -v
31-
nimble install 'https://github.com/nim-lang/atlas@#78b6814a05ec1b18eef388c7336f583eb6e9993f'
3232
3333
- name: Cache packages
3434
uses: actions/cache@v3
@@ -39,9 +39,8 @@ jobs:
3939
- name: Install Deps
4040
run: |
4141
# sync deps
42-
atlas replay --cfgHere --ignoreUrls atlas.lock
43-
cat nim.cfg
42+
nimble install -d --verbose
4443
4544
- name: Build Tests
4645
run: |
47-
nim test
46+
nimble test

.github/workflows/build-pr.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,25 @@ jobs:
1616
- uses: actions/checkout@v1
1717
with:
1818
path: "fig_ws/"
19-
- name: Move
20-
run: |
21-
cd ../
22-
mv fig_ws/ figuro
23-
mkdir fig_ws/
24-
mv figuro/ fig_ws/figuro
25-
pwd
26-
find . | grep -v .git
2719
- uses: iffy/install-nim@v4
2820
with:
2921
version: ${{ matrix.nimversion }}
3022
env:
3123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3224

33-
- name: Install Atlas
25+
- name: Install Nimble
3426
run: |
27+
nimble install nimble
3528
nim -v
3629
nimble -v
37-
nimble install 'https://github.com/nim-lang/atlas@#78b6814a05ec1b18eef388c7336f583eb6e9993f'
38-
39-
- name: Cache packages
40-
uses: actions/cache@v3
41-
with:
42-
path: vendor
43-
key: ${{ runner.os }}-${{ hashFiles('figuro/atlas.lock') }}
4430
4531
- name: Install Deps
4632
run: |
4733
# new atlas workspace
48-
atlas init --deps=vendor
49-
50-
# sync deps
51-
atlas replay --cfgHere --ignoreUrls figuro/atlas.lock
34+
nimble install -d --verbose
5235
5336
- name: Test build From fig_ws/
5437
run: |
55-
ls vendor/
5638
nim c figuro/tests/tclick.nim
5739
5840
- name: Build Tests

0 commit comments

Comments
 (0)