-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
56 additions
and
107 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,10 +72,9 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
mode: ["debug", "release"] | ||
# enable debug information | ||
profile: ["debug", "release"] | ||
env: | ||
RUSTFLAGS: "-g --cfg s2n_internal_dev --cfg s2n_quic_dump_on_panic --cfg s2n_quic_unstable" | ||
RUSTFLAGS: "--cfg s2n_internal_dev --cfg s2n_quic_dump_on_panic --cfg s2n_quic_unstable" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -90,22 +89,24 @@ jobs: | |
|
||
- uses: camshaft/rust-cache@v1 | ||
with: | ||
key: ${{ matrix.mode }}-${{ env.RUSTFLAGS }} | ||
key: ${{ matrix.profile }}-${{ env.RUSTFLAGS }} | ||
|
||
- name: Run cargo build | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: build | ||
args: --bin s2n-quic-qns ${{ matrix.mode == 'release' && '--release' || '' }} | ||
env: | ||
QNS_PROFILE: ${{ matrix.profile == 'release' && '--profile=release-debug' || '' }} | ||
run: | | ||
cargo build --bin s2n-quic-qns $QNS_PROFILE | ||
- name: Prepare artifact | ||
env: | ||
QNS_PROFILE: ${{ matrix.profile == 'release' && 'release-debug' || 'debug' }} | ||
run: | | ||
mkdir -p s2n-quic-qns | ||
cp target/${{ matrix.mode }}/s2n-quic-qns s2n-quic-qns/s2n-quic-qns-${{ matrix.mode }} | ||
cp target/$QNS_PROFILE/s2n-quic-qns s2n-quic-qns/s2n-quic-qns-${{ matrix.profile }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: s2n-quic-qns-${{ matrix.mode }} | ||
name: s2n-quic-qns-${{ matrix.profile }} | ||
path: s2n-quic-qns/ | ||
|
||
interop: | ||
|
@@ -504,8 +505,9 @@ jobs: | |
|
||
- name: Setup artifacts | ||
run: | | ||
mv target/release/s2n-quic-qns-release target/release/s2n-quic-qns | ||
chmod +x target/release/s2n-quic-qns | ||
mkdir -p target/release-debug | ||
mv target/release/s2n-quic-qns-release target/release-debug/s2n-quic-qns | ||
chmod +x target/release-debug/s2n-quic-qns | ||
- name: Run script | ||
env: | ||
|
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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