Skip to content

Merge pull request #5 from community-network/dependabot/cargo/rustix-… #53

Merge pull request #5 from community-network/dependabot/cargo/rustix-…

Merge pull request #5 from community-network/dependabot/cargo/rustix-… #53

Workflow file for this run

name: Rust
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
components: clippy
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build --all --release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/bf4.exe
target/release/bf1.exe
target/release/bfv.exe
target/release/bf2042.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}