Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Install repro-env
run: |
wget 'https://github.com/kpcyrd/repro-env/releases/download/v0.4.4/repro-env'
echo 'eaae57fbb51f6f802cb1c5ea4c07588feb18f8f533d7175b3cde599a974bb0d3 repro-env' | sha256sum -c -
wget 'https://github.com/kpcyrd/repro-env/releases/download/v0.4.5/repro-env'
echo 'd6a52bc7cfce4ff2e20dcdd01daf83968429f03f225178ef7f687f286a0d0ab4 repro-env' | sha256sum -c -
sudo install -m755 repro-env -t /usr/bin

- name: Install deps
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler podman
run: sudo apt-get update && sudo apt-get -y install podman catatonit

# Improves reproducibility
- name: Set SOURCE_DATE_EPOCH
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)" >> "$GITHUB_ENV"

- name: Build
run: repro-env build --env CFLAGS="-fno-link-libatomic" --env SOURCE_DATE_EPOCH -- cargo build --features sev-snp --release --target x86_64-unknown-linux-musl
run: repro-env build --env SOURCE_DATE_EPOCH -- cargo build --features sev-snp --release --target x86_64-unknown-linux-musl

- name: Generate SHA checksum
run: shasum target/x86_64-unknown-linux-musl/release/ic-http-lb > ic-http-lb.shasum
Expand All @@ -46,7 +46,7 @@ jobs:
run: rm -rf target

- name: Build again
run: repro-env build --env CFLAGS="-fno-link-libatomic" --env SOURCE_DATE_EPOCH -- cargo build --features sev-snp --release --target x86_64-unknown-linux-musl
run: repro-env build --env SOURCE_DATE_EPOCH -- cargo build --features sev-snp --release --target x86_64-unknown-linux-musl

- name: Check SHA checksum
run: shasum -c ic-http-lb.shasum
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
push-to-registry: true

- name: Send Slack message
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1

- name: Install repro-env
run: |
wget 'https://github.com/kpcyrd/repro-env/releases/download/v0.4.4/repro-env'
echo 'eaae57fbb51f6f802cb1c5ea4c07588feb18f8f533d7175b3cde599a974bb0d3 repro-env' | sha256sum -c -
wget 'https://github.com/kpcyrd/repro-env/releases/download/v0.4.5/repro-env'
echo 'd6a52bc7cfce4ff2e20dcdd01daf83968429f03f225178ef7f687f286a0d0ab4 repro-env' | sha256sum -c -
sudo install -m755 repro-env -t /usr/bin

- name: Install deps
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler && cargo install cargo-all-features
run: sudo apt-get update && sudo apt-get -y install podman catatonit

- name: Run all tests
run: cargo test-all-features
run: cargo test --all-features && cargo clean && rm -rf target

- name: Build using repro-env
run: repro-env build --env CFLAGS="-fno-link-libatomic" -- cargo build --features sev-snp --target x86_64-unknown-linux-musl
run: repro-env build -- cargo build --all-features --target x86_64-unknown-linux-musl
Loading
Loading