Skip to content

clean up for background release #6

clean up for background release

clean up for background release #6

Workflow file for this run

name: Rust
on:
workflow_dispatch:
push:
tags: [ '*' ]
env:
CARGO_TERM_COLOR: always
CLIENT_DLL_NAME: nexus_config_backup
jobs:
build-lib:
name: Build DLL
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build Step
run: |
cargo build --release
- name: Upload Library
uses: actions/upload-artifact@v4
with:
name: ${{ env.CLIENT_DLL_NAME }}.dll
path: target\release\${{ env.CLIENT_DLL_NAME }}.dll
release:
name: Release Binaries
runs-on: ubuntu-latest
needs: [ build-lib ]
permissions:
contents: write
if: ${{ startsWith(github.event.ref, 'refs/tags/') }}
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ env.CLIENT_DLL_NAME }}.dll
path: .
- name: Release Dll
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.CLIENT_DLL_NAME }}.dll