Skip to content

Commit

Permalink
chore: re-rework actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Nov 13, 2024
1 parent 23329a2 commit ef53c35
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
description: Builds the index
name: Setup rust
description: Installs rust for cross-compilation on ARM

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

- name: Setup environment
shell: bash
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Install rust
shell: bash
run: |
rustup toolchain install stable --profile minimal
rustup target add aarch64-unknown-linux-gnu
- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Build
shell: bash
id: build
run: |
cargo build --release --target aarch64-unknown-linux-gnu
11 changes: 10 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup rust
uses: ./.github/actions/setup-rust

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Build
uses: ./.github/actions/build
shell: bash
id: build
run: |
cargo build --release --target aarch64-unknown-linux-gnu
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup rust
uses: ./.github/actions/setup-rust

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Build
uses: ./.github/actions/build
shell: bash
id: build
run: |
cargo build --release --target aarch64-unknown-linux-gnu
- name: Create ssh key
run: |
Expand Down

0 comments on commit ef53c35

Please sign in to comment.