mirror of
https://github.com/house-of-vanity/khm.git
synced 2025-07-07 23:34:07 +00:00
Update main.yml
This commit is contained in:
committed by
GitHub
parent
bd3054d2f1
commit
f32014306b
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@ -39,24 +39,11 @@ jobs:
|
||||
- name: Build project
|
||||
run: cargo build --release --target ${{ matrix.target }}
|
||||
|
||||
- name: Strip binary on Linux and macOS
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: strip target/${{ matrix.target }}/release/khm
|
||||
|
||||
- name: Strip binary on Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
eval `cat /etc/os-release`
|
||||
wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
add-apt-repository 'deb http://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-bionic-10 main'
|
||||
sudo apt update
|
||||
sudo apt-get install -y llvm
|
||||
llvm-strip-10 target/${{ matrix.target }}/release/khm.exe
|
||||
|
||||
- name: Upload release assets
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: khm-${{ matrix.os }}
|
||||
path: target/${{ matrix.target }}/release/
|
||||
path: target/${{ matrix.target }}/release/khm*
|
||||
compression-level: 9
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user