Merge pull request #166 from dbalsom/0.4.0/rfd #76
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: Windows | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
msys2: | |
name: martypc | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: msys2 {0} | |
strategy: | |
matrix: | |
environment: | |
- msystem: MINGW64 | |
prefix: mingw-w64-x86_64 | |
steps: | |
- name: Prepare MSYS2 environment | |
uses: msys2/setup-msys2@v2 | |
with: | |
release: false | |
update: true | |
msystem: ${{ matrix.environment.msystem }} | |
pacboy: >- | |
toolchain:p | |
- name: Install nightly Rust | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh | |
sh rustup-init.sh -y --default-host x86_64-pc-windows-gnu --default-toolchain nightly --profile complete | |
$USERPROFILE/.cargo/bin/cargo version | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cargo build | |
run: | | |
$USERPROFILE/.cargo/bin/cargo build --profile release-lto --features use_winit,use_wgpu,sound,opl | |
- name: Copy files into install dir | |
run: cp LICENSE README.md CHANGELOG.md CREDITS.md target/release-lto/martypc install | |
- name: Rename install directory | |
run: mv install martypc | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: martypc-windows-gha | |
path: martypc |