Revert krane static and prepare for release v0.7.0-rc2 #1000
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
# triggers when a PR is posted | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- "**.md" | |
- "**.plantuml" | |
- "**.svg" | |
jobs: | |
build: | |
runs-on: | |
group: bottlerocket | |
labels: bottlerocket_ubuntu-latest_16-core | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo install cargo-deny --locked | |
- run: cargo install cargo-make --locked | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.18" | |
# Install `patch`, needed to build `krane-bundle` | |
- run: sudo apt-get install -y patch | |
- run: make build | |
cross-build: | |
runs-on: | |
group: bottlerocket | |
labels: bottlerocket_ubuntu-latest_16-core | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-musl | |
- target: aarch64-unknown-linux-musl | |
env: | |
TARGET_TRIPLE: ${{ matrix.target }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cross | |
# Pin cargo cross to a version that we know is working for us. | |
run: | | |
cargo install cross --git /~https://github.com/cross-rs/cross/ --rev 7b79041 --locked | |
- run: | | |
# cargo-cross warns us that multiple cross configurations are present in our | |
# workspace (ie dependencies have configurations), but it picks the appropriate one from | |
# the twoliter workspace. | |
# | |
# These warnings cause the tool to fail, so we disable them. | |
export CROSS_NO_WARNINGS=0 | |
cross build --release --bin twoliter --target "${TARGET_TRIPLE}" |