Update codecov/codecov-action action to v5 #379
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
on: [push] | |
name: 'Build: Windows (x86_64)' | |
jobs: | |
windows_x86-64: | |
name: Windows (x86_64) | |
runs-on: windows-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-gnu | |
target: x86_64-pc-windows-gnu | |
default: true | |
profile: minimal | |
- name: Build larz | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --all-features --target x86_64-pc-windows-gnu | |
- name: Prepare larz for upload | |
run: | | |
cd ./target/x86_64-pc-windows-gnu/release/ | |
tar -czvf x86_64-larz.win32.zip ` | |
larz.exe ` | |
larz.dll ` | |
liblarz.a ` | |
liblarz.dll.a | |
- name: Upload larz build artifacts to GitHub | |
uses: actions/upload-artifact@v3 | |
with: | |
name: x86_64-larz.win32 | |
path: ./target/x86_64-pc-windows-gnu/release/x86_64-larz.win32.zip | |
if-no-files-found: error |