ci: avoid unsupported Gitea artifact actions
Linux / verify (pull_request) Successful in 2m41s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 39s
Linux / linux-static-cli (pull_request) Successful in 8m39s
Linux / release-cli (pull_request) Skipped
Linux / verify (pull_request) Successful in 2m41s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 39s
Linux / linux-static-cli (pull_request) Successful in 8m39s
Linux / release-cli (pull_request) Skipped
This commit is contained in:
@@ -370,11 +370,6 @@ jobs:
|
||||
docker image rm "$image"
|
||||
rm "$receipt"
|
||||
fi
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: strata-next-linux-x86_64-musl
|
||||
path: dist/
|
||||
|
||||
linux-cli-container:
|
||||
needs: verify
|
||||
runs-on: ubuntu-latest
|
||||
@@ -397,10 +392,45 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: strata-next-linux-x86_64-musl
|
||||
path: dist/
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install release build tools
|
||||
run: apt-get update && apt-get install -y ca-certificates curl gh musl-tools cmake binutils python3-numpy
|
||||
- name: Install pinned Rust and target
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
rustup toolchain install 1.99.0 --profile minimal
|
||||
rustup target add --toolchain 1.99.0 x86_64-unknown-linux-musl
|
||||
- name: Rebuild release CLI assets on the tag commit
|
||||
run: |
|
||||
cargo build --manifest-path control-plane/Cargo.toml --locked --release --target x86_64-unknown-linux-musl --bin strata-next
|
||||
binary=target/x86_64-unknown-linux-musl/release/strata-next
|
||||
if readelf -l "$binary" | grep -q INTERP; then
|
||||
echo 'ELF has a dynamic interpreter' >&2
|
||||
exit 1
|
||||
fi
|
||||
if readelf -d "$binary" | grep -q NEEDED; then
|
||||
echo 'ELF has a dynamic library dependency' >&2
|
||||
exit 1
|
||||
fi
|
||||
"$binary" --version
|
||||
mkdir -p dist
|
||||
cp "$binary" dist/strata-next-linux-x86_64-musl
|
||||
{
|
||||
echo "Commit: $GITHUB_SHA"
|
||||
echo "Workflow: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
|
||||
rustc --version
|
||||
cargo --version
|
||||
musl-gcc --version
|
||||
readelf --version
|
||||
} > dist/BUILD-PROVENANCE.txt
|
||||
{
|
||||
readelf -h "$binary"
|
||||
readelf -l "$binary"
|
||||
readelf -d "$binary"
|
||||
} > dist/ELF-AUDIT.txt
|
||||
(cd dist && sha256sum strata-next-linux-x86_64-musl BUILD-PROVENANCE.txt ELF-AUDIT.txt > SHA256SUMS)
|
||||
- name: Publish CLI preview release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user