Skip to content

build(deps): bump actions/setup-go from 6.4.0 to 7.0.0 #1573

build(deps): bump actions/setup-go from 6.4.0 to 7.0.0

build(deps): bump actions/setup-go from 6.4.0 to 7.0.0 #1573

Workflow file for this run

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- run: cargo install cargo-deny --locked
- run: cargo install cargo-make --locked
# Install tools for linking against musl.
- run: sudo apt-get install -y musl-tools musl-dev
- run: rustup target add x86_64-unknown-linux-musl
- run: CARGO_BUILD_TARGET=x86_64-unknown-linux-musl 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- 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}"