Skip to content

Commit fd6b5d2

Browse files
committed
fix: remove PGO from publish workflow
1 parent 71bfbf3 commit fd6b5d2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
# https://github.com/rust-lang/rust/issues/61002
4040
cargo build --release --locked
4141
else
42-
just build
42+
cargo build --release --locked
4343
fi
4444
4545
- name: Build archive
@@ -50,16 +50,13 @@ jobs:
5050
5151
cp {README.md,UNLICENSE,LICENSE-MIT} "$staging/"
5252
cp {Cargo.toml,Cargo.lock} "$staging/"
53-
cp justfile "$staging/"
5453
cp -R ./src "./$staging/src"
5554
5655
5756
if [ "${{ matrix.os }}" = "windows-latest" ]; then
5857
7z a "${staging}.zip" "$staging"
5958
echo "ASSET=${staging}.zip" >> $GITHUB_ENV
6059
else
61-
mkdir -p "${staging}/pgo-data"
62-
cp ./pgo-data/merged.profdata "./${staging}/pgo-data/merged.profdata"
6360
tar czf "${staging}.tar.gz" "${staging}"
6461
echo "ASSET=${staging}.tar.gz" >> $GITHUB_ENV
6562
fi
@@ -70,7 +67,7 @@ jobs:
7067
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
7168
cargo install cargo-deb
7269
asset_path="${{ matrix.asset_name }}.deb"
73-
RUSTFLAGS="-Cllvm-args=-pgo-warn-missing-function -Cprofile-use=$(pwd)/pgo-data/merged.profdata" cargo deb --output ./"${asset_path}"
70+
cargo deb --output ./"${asset_path}"
7471
echo "DEB=${asset_path}" >> $GITHUB_ENV
7572
fi
7673
@@ -83,7 +80,7 @@ jobs:
8380
asset_name: ${{ env.DEB }}
8481
tag: ${{ github.ref }}
8582

86-
- name: Upload src and pgo data to release
83+
- name: Upload src to release
8784
uses: svenstaro/upload-release-action@v2
8885
with:
8986
repo_token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.11.3
4+
5+
- chore: fix publish workflow by removing PGO artifacts
6+
37
## v0.11.2
48

59
- [chore](https://github.com/sstadick/hck/pull/94) from @0323pin, updates deps

0 commit comments

Comments
 (0)