Skip to content

Commit

Permalink
Experiment with auditable builds
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Aug 8, 2024
1 parent 871eec7 commit efd6e3c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,15 @@ jobs:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}

- name: Install extra tools
run: |
cargo install quickinstall
cargo quickinstall cargo-audit cargo-auditable
- name: Use Cross
if: matrix.os == 'ubuntu-latest'
run: |
cargo install cross
cargo quickinstall cross
echo 'CARGO=cross' >> "$GITHUB_ENV"
- name: Show command used for Cargo
Expand All @@ -174,7 +179,7 @@ jobs:
- name: Build release binary (with extra optimizations)
run: |
"$CARGO" build --verbose --profile="$PROFILE" "$TARGET_FLAGS" --no-default-features --features="$FEATURE"
"$CARGO" auditable build --verbose --profile="$PROFILE" "$TARGET_FLAGS" --no-default-features --features="$FEATURE"
- name: Determine archive basename
run: echo "ARCHIVE=gitoxide-$FEATURE-$VERSION-$TARGET" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -333,7 +338,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish the release
- name: Publish the release # FIXME: Reenable this.
if: false
run: gh release --repo="$REPOSITORY" edit "$VERSION" --draft=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit efd6e3c

Please sign in to comment.