Skip to content

Commit ef53c35

Browse files
committed
chore: re-rework actions
1 parent 23329a2 commit ef53c35

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Build
2-
description: Builds the index
1+
name: Setup rust
2+
description: Installs rust for cross-compilation on ARM
33

44
runs:
55
using: "composite"
@@ -8,21 +8,8 @@ runs:
88
shell: bash
99
run: sudo apt-get update && sudo apt-get install --assume-yes --no-install-recommends g++-aarch64-linux-gnu
1010

11-
- name: Setup environment
12-
shell: bash
13-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
14-
1511
- name: Install rust
1612
shell: bash
1713
run: |
1814
rustup toolchain install stable --profile minimal
1915
rustup target add aarch64-unknown-linux-gnu
20-
21-
- name: Setup cache
22-
uses: Swatinem/rust-cache@v2
23-
24-
- name: Build
25-
shell: bash
26-
id: build
27-
run: |
28-
cargo build --release --target aarch64-unknown-linux-gnu

.github/workflows/build.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17+
- name: Setup rust
18+
uses: ./.github/actions/setup-rust
19+
20+
- name: Setup cache
21+
uses: Swatinem/rust-cache@v2
22+
1723
- name: Build
18-
uses: ./.github/actions/build
24+
shell: bash
25+
id: build
26+
run: |
27+
cargo build --release --target aarch64-unknown-linux-gnu
1928
2029
- name: Upload artifact
2130
uses: actions/upload-artifact@v4

.github/workflows/deploy.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,17 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414

15+
- name: Setup rust
16+
uses: ./.github/actions/setup-rust
17+
18+
- name: Setup cache
19+
uses: Swatinem/rust-cache@v2
20+
1521
- name: Build
16-
uses: ./.github/actions/build
22+
shell: bash
23+
id: build
24+
run: |
25+
cargo build --release --target aarch64-unknown-linux-gnu
1726
1827
- name: Create ssh key
1928
run: |

0 commit comments

Comments
 (0)