Skip to content

fix actions

fix actions #2

Workflow file for this run

# .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 x86_64-unknown-linux-musl
uses: rust-build/[email protected]
with:
RUSTTARGET: x86_64-unknown-linux-musl
UPLOAD_MODE: none
# Compile the project
- name: Compile x86_64-apple-darwin
uses: rust-build/[email protected]
with:
RUSTTARGET: x86_64-apple-darwin
UPLOAD_MODE: none
# Compile the project
- name: Compile x86_64-pc-windows-gnu
uses: rust-build/[email protected]
with:
RUSTTARGET: x86_64-pc-windows-gnu
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 }}