fix actions #1
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
# .github/workflows/build.yml | |
name: Build | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@master | |
# Set up the Rust toolchain | |
- name: Run tests | |
run: cd ./soda_resource_tools_lib && cargo build && cargo test -- --test-threads=1 | |
# Compile the project | |
- name: Compile | |
id: compile | |
uses: rust-build/[email protected] | |
with: | |
RUSTTARGET: x86_64-unknown-linux-musl | |
UPLOAD_MODE: none | |
# Upload the artifact | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Binary | |
path: | | |
${{ steps.compile.outputs.BUILT_ARCHIVE }} | |
${{ steps.compile.outputs.BUILT_CHECKSUM }} |