-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f1ca890
commit b742efd
Showing
3 changed files
with
24 additions
and
16 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
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 |
---|---|---|
|
@@ -32,15 +32,23 @@ jobs: | |
brew unlink [email protected] || true | ||
brew install coreutils pkgconfig libarchive llvm@18 | ||
echo PKG_CONFIG_PATH=$(brew ls libarchive | grep .pc$ | sed 's|/libarchive.pc||') >> $GITHUB_ENV | ||
- name: Install cargo-packager | ||
run: (cargo install cargo-packager || true) | ||
|
||
- name: Set build specific env vars | ||
run: | | ||
echo "CC=${HOMEBREW_PREFIX}/opt/llvm@18/bin/clang" >> "$GITHUB_ENV" | ||
echo "CXX=${HOMEBREW_PREFIX}/opt/llvm@18/bin/clang++" >> "$GITHUB_ENV" | ||
echo "AR=${HOMEBREW_PREFIX}/opt/llvm@18/bin/llvm-ar" >> "$GITHUB_ENV" | ||
echo "CFLAGS=\"-flto=full -O3\"" >> "$GITHUB_ENV" | ||
echo "CXXFLAGS=\"-flto=full -O3\"" >> "$GITHUB_ENV" | ||
echo "RUSTFLAGS=\"-Zshare-generics=true -Clinker-plugin-lto -Clinker=$PWD/scripts/linker-shim.sh -Clink-arg=-fuse-ld=${HOMEBREW_PREFIX}/opt/llvm@18/bin/ld64.lld\"" >> "$GITHUB_ENV" | ||
- uses: r7kamura/rust-problem-matchers@v1 | ||
- name: Build | ||
run: ./scripts/ci.sh | ||
run: cargo build --release | ||
- name: Test | ||
run: cargo test --release --no-fail-fast --features="leaky-api" -- --nocapture | ||
run: cargo test --release --features="leaky-api" -- --nocapture | ||
|
||
- name: Install cargo-packager | ||
run: (cargo install cargo-packager || true) | ||
- name: Run cargo-packager | ||
run: cargo packager --release --formats app | ||
|
||
|
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