1.1.3 #90
Workflow file for this run
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
name: Rust | |
on: | |
release: | |
types: | |
- created | |
- edited | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Switch nightly | |
run: | |
rustup default nightly; rustup target add i686-pc-windows-msvc | |
- name: Build | |
run: | |
cargo +nightly build --release --verbose -Z build-std=core,alloc,std,panic_abort -Z build-std-features=panic_immediate_abort --target i686-pc-windows-msvc | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3.1.1 | |
with: | |
name: BetterNCM-Installer | |
path: ${{ github.workspace }}/target/i686-pc-windows-msvc/release/betterncm_installer.exe | |
- name: Upload to Release Action | |
if: ${{ github.event_name == 'release' }} | |
uses: Shopify/upload-to-release@v1.0.1 | |
with: | |
name: betterncm_installer.exe | |
path: ${{ github.workspace }}/target/i686-pc-windows-msvc/release/betterncm_installer.exe | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |