Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 0a110f8

Browse files
authored
Use get-dove gh-action in coverage and tests workflows (#60)
1 parent 0e09939 commit 0a110f8

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

.github/workflows/coverage.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929
grcov: grcov-linux-x86_64.tar.bz2
3030
dove:
3131
version: 1.1.4
32-
release: 1.1.4
33-
arch: linux-x86_64
3432

3533
env:
3634
SKIP_WASM_BUILD: 1
@@ -66,16 +64,16 @@ jobs:
6664
cp grcov ~/.cargo/bin/grcov
6765
rm ${{ matrix.cfg.grcov }}
6866
67+
- name: Cache
68+
uses: actions/cache@v2
69+
with:
70+
path: ~/.dove
71+
key: ${{ matrix.cfg.os }}-dove
6972
- name: get Dove
70-
run: |
71-
curl -sL --fail \
72-
-H "Accept: application/octet-stream" \
73-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
74-
-o "dove" \
75-
"https://github.com/pontem-network/move-tools/releases/download/${{ matrix.cfg.dove.release }}/dove-${{ matrix.cfg.dove.version }}-${{ matrix.cfg.dove.arch }}"
76-
sudo chown runner ./dove && chmod +x ./dove
77-
mv ./dove ~/.cargo/bin/dove
78-
dove -V
73+
uses: pontem-network/get-dove@main
74+
with:
75+
version: ${{ matrix.cfg.dove.version }}
76+
token: ${{ secrets.GITHUB_TOKEN }}
7977

8078
- name: Build test resources
8179
run: make assets

.github/workflows/tests.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
matrix:
2828
cfg:
2929
- os: macos-latest
30-
dove: mac-x86_64
30+
dove:
31+
version: 1.1.4
3132
- os: ubuntu-latest
32-
dove: linux-x86_64
33-
33+
dove:
34+
version: 1.1.4
3435
steps:
3536
- name: Checkout repository
3637
uses: actions/checkout@v2
@@ -52,16 +53,16 @@ jobs:
5253
- name: Check formatting
5354
run: cargo fmt -- --check
5455

56+
- name: Cache
57+
uses: actions/cache@v2
58+
with:
59+
path: ~/.dove
60+
key: ${{ matrix.cfg.os }}-dove
5561
- name: get Dove
56-
run: |
57-
curl -sL --fail \
58-
-H "Accept: application/octet-stream" \
59-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
60-
-o "dove" \
61-
"https://github.com/pontem-network/move-tools/releases/download/1.1.4/dove-1.1.4-${{ matrix.cfg.dove }}"
62-
sudo chown runner ./dove && chmod +x ./dove
63-
mv ./dove ~/.cargo/bin/dove
64-
dove -V
62+
uses: pontem-network/get-dove@main
63+
with:
64+
version: ${{ matrix.cfg.dove.version }}
65+
token: ${{ secrets.GITHUB_TOKEN }}
6566

6667
- name: Build test resources
6768
run: make assets

0 commit comments

Comments
 (0)