name: Compile Rust Code on Release on: [push] on: [push] jobs: lint&test: runs-on: ubuntu-latest container: image: rust steps: # nodejs is required for the checkout action - run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs - uses: actions/checkout@v4 - run: rustup component add rustfmt clippy - run: cargo fmt -- --check - run: cargo clippy -- -D warnings - run: cargo check - run: cargo test - run: cargo build --release - name: Package Artifacts run: | mkdir -p artifacts cp target/release/wololo artifacts/ - name: Upload Artifacts uses: actions/upload-artifact@v2 with: name: rust-release-artifacts path: artifacts/