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
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
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 }}
0 commit comments