ci: replace actions/checkout with git clone
actions/checkout@v4 requires Node.js, which is not present in the Rust container images. Use git clone directly instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: rust:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
run: git clone --depth 1 --branch "$GITHUB_REF_NAME" "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
|
||||
- name: Add musl target
|
||||
run: rustup target add x86_64-unknown-linux-musl
|
||||
- name: Install musl tools
|
||||
@@ -34,7 +35,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: messense/rust-musl-cross:aarch64-musl
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
run: git clone --depth 1 --branch "$GITHUB_REF_NAME" "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
|
||||
- name: Build
|
||||
run: cargo build --release --target aarch64-unknown-linux-musl
|
||||
- name: Create archive
|
||||
|
||||
Reference in New Issue
Block a user