Bootstrap Rust in release jobs.
Some checks failed
Tagged release / prepare-release (push) Successful in 9m41s
Tagged release / build-macos (push) Failing after 15m9s
Tagged release / build-linux-arm64 (push) Successful in 38m44s
Tagged release / build-linux-x64 (push) Failing after 10s
Tagged release / build-windows (push) Failing after 17m47s
Tagged release / publish-release (push) Has been skipped
Some checks failed
Tagged release / prepare-release (push) Successful in 9m41s
Tagged release / build-macos (push) Failing after 15m9s
Tagged release / build-linux-arm64 (push) Successful in 38m44s
Tagged release / build-linux-x64 (push) Failing after 10s
Tagged release / build-windows (push) Failing after 17m47s
Tagged release / publish-release (push) Has been skipped
This commit is contained in:
@@ -21,7 +21,11 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install the release Rust toolchain
|
- name: Install the release Rust toolchain
|
||||||
run: rustup toolchain install ${RUST_TOOLCHAIN} --profile minimal
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||||
|
cache: false
|
||||||
|
rustflags: ""
|
||||||
|
|
||||||
- name: Test release tooling
|
- name: Test release tooling
|
||||||
run: cargo +${RUST_TOOLCHAIN} test --locked --package bds-release
|
run: cargo +${RUST_TOOLCHAIN} test --locked --package bds-release
|
||||||
@@ -101,7 +105,12 @@ jobs:
|
|||||||
run: sh .gitea/scripts/install-linux-build-dependencies.sh arm64
|
run: sh .gitea/scripts/install-linux-build-dependencies.sh arm64
|
||||||
|
|
||||||
- name: Install the release Rust target
|
- name: Install the release Rust target
|
||||||
run: rustup toolchain install ${RUST_TOOLCHAIN} --profile minimal --target aarch64-unknown-linux-gnu
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||||
|
target: aarch64-unknown-linux-gnu
|
||||||
|
cache: false
|
||||||
|
rustflags: ""
|
||||||
|
|
||||||
- name: Build, package, and upload Linux arm64 release
|
- name: Build, package, and upload Linux arm64 release
|
||||||
env:
|
env:
|
||||||
@@ -138,7 +147,12 @@ jobs:
|
|||||||
run: sh .gitea/scripts/install-linux-build-dependencies.sh x64
|
run: sh .gitea/scripts/install-linux-build-dependencies.sh x64
|
||||||
|
|
||||||
- name: Install the release Rust target
|
- name: Install the release Rust target
|
||||||
run: rustup toolchain install ${RUST_TOOLCHAIN} --profile minimal --target x86_64-unknown-linux-gnu
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||||
|
target: x86_64-unknown-linux-gnu
|
||||||
|
cache: false
|
||||||
|
rustflags: ""
|
||||||
|
|
||||||
- name: Build, package, and upload Linux x64 release
|
- name: Build, package, and upload Linux x64 release
|
||||||
env:
|
env:
|
||||||
@@ -208,7 +222,11 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install the release Rust toolchain
|
- name: Install the release Rust toolchain
|
||||||
run: rustup toolchain install ${RUST_TOOLCHAIN} --profile minimal
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
||||||
|
cache: false
|
||||||
|
rustflags: ""
|
||||||
|
|
||||||
- name: Publish complete release
|
- name: Publish complete release
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -143,6 +143,13 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
|
|||||||
"release workflow must not use host tool {forbidden}"
|
"release workflow must not use host tool {forbidden}"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
assert_eq!(
|
||||||
|
workflow
|
||||||
|
.matches("actions-rust-lang/setup-rust-toolchain@v1")
|
||||||
|
.count(),
|
||||||
|
4,
|
||||||
|
"every release job using the Ubuntu runner image must bootstrap Rust"
|
||||||
|
);
|
||||||
|
|
||||||
let linux_dependencies =
|
let linux_dependencies =
|
||||||
fs::read_to_string(workspace.join(".gitea/scripts/install-linux-build-dependencies.sh"))
|
fs::read_to_string(workspace.join(".gitea/scripts/install-linux-build-dependencies.sh"))
|
||||||
|
|||||||
Reference in New Issue
Block a user