Skip to content

Commit

Permalink
fix: ci release builds (#1988)
Browse files Browse the repository at this point in the history
## Description

After the initial merge of #1987
made some fixes.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
  • Loading branch information
Arqu authored Feb 1, 2024
1 parent 8321854 commit 757a84d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
env:
# Using self-hosted runners so use local cache for sccache and
# not SCCACHE_GHA_ENABLED.
RUSTC_WRAPPER: "sccache"
# RUSTC_WRAPPER: "sccache"
RUST_BACKTRACE: full
RUSTV: ${{ matrix.rust }}
steps:
Expand All @@ -76,20 +76,25 @@ jobs:
run: |
rustup toolchain install ${{ matrix.rust }}
- name: Install sccache
if: matrix.name != 'windows-latest'
uses: mozilla-actions/[email protected]

- name: build release
run: |
cargo build --profile optimized-release --all-features
- name: attach artifacts
if: matrix.os != 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: iroh-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7}
name: iroh-${{env.RELEASE_OS }}-${{env.RELEASE_ARCH}}
path: target/optimized-release/iroh
compression-level: 0

- name: attach artifacts
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: iroh-windows-amd64.exe
path: target/optimized-release/iroh.exe
compression-level: 0

- name: Setup awscli on linux
if: matrix.name == 'ubuntu-latest'
Expand Down

0 comments on commit 757a84d

Please sign in to comment.