mirror of
https://github.com/house-of-vanity/khm.git
synced 2025-08-21 22:27:14 +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
|
- name: Build project
|
||||||
run: cargo build --release --target ${{ matrix.target }}
|
run: cargo build --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Strip binary on Linux and macOS
|
- name: Upload binaries
|
||||||
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
|
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: khm-${{ matrix.os }}
|
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