Skip to content

Commit 2e280f6

Browse files
ci: converting to earthly/actions-setup@v1 (#47)
1 parent f124ab9 commit 2e280f6

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
language: [rust, shell]
1616
steps:
1717
- name: Download Earthly v0.8.12.
18-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
18+
uses: earthly/actions-setup@v1
19+
with:
20+
version: v0.8.12
1921
- name: Checkout code.
2022
uses: actions/checkout@v4
2123
- name: Check formatting.
@@ -28,7 +30,9 @@ jobs:
2830
language: [rust, shell]
2931
steps:
3032
- name: Download Earthly v0.8.12.
31-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
33+
uses: earthly/actions-setup@v1
34+
with:
35+
version: v0.8.12
3236
- name: Checkout code.
3337
uses: actions/checkout@v4
3438
- name: Check linting.
@@ -38,7 +42,9 @@ jobs:
3842
runs-on: ubuntu-latest
3943
steps:
4044
- name: Download Earthly v0.8.12.
41-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
45+
uses: earthly/actions-setup@v1
46+
with:
47+
version: v0.8.12
4248
- name: Checkout code.
4349
uses: actions/checkout@v4
4450
- name: Compile.
@@ -48,7 +54,9 @@ jobs:
4854
runs-on: ubuntu-latest
4955
steps:
5056
- name: Download Earthly v0.8.12.
51-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
57+
uses: earthly/actions-setup@v1
58+
with:
59+
version: v0.8.12
5260
- name: Checkout code.
5361
uses: actions/checkout@v4
5462
- name: Unit test.

.github/workflows/conventional-commits.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Download Earthly v0.8.12.
15-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
15+
uses: earthly/actions-setup@v1
16+
with:
17+
version: v0.8.12
1618
- name: Checkout code.
1719
uses: actions/checkout@v4
1820
with:

.github/workflows/git-history.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Download Earthly v0.8.12.
15-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
15+
uses: earthly/actions-setup@v1
16+
with:
17+
version: v0.8.12
1618
- name: Checkout code.
1719
uses: actions/checkout@v4
1820
with:

.github/workflows/github-actions-workflows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Download Earthly v0.8.12.
15-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
15+
uses: earthly/actions-setup@v1
16+
with:
17+
version: v0.8.12
1618
- name: Checkout code.
1719
uses: actions/checkout@v4
1820
- name: Check GitHub Actions workflows linting.
@@ -22,7 +24,9 @@ jobs:
2224
runs-on: ubuntu-latest
2325
steps:
2426
- name: Download Earthly v0.8.12.
25-
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
27+
uses: earthly/actions-setup@v1
28+
with:
29+
version: v0.8.12
2630
- name: Checkout code.
2731
uses: actions/checkout@v4
2832
- name: Check formatting.

0 commit comments

Comments
 (0)