Skip to content

Merge pull request #196 from srwalter/support-1.88 #48

Merge pull request #196 from srwalter/support-1.88

Merge pull request #196 from srwalter/support-1.88 #48

Workflow file for this run

name: Windows 7
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
msvc:
name: martypc
runs-on: windows-2022
strategy:
matrix:
arch:
- amd64
version:
- 1.85.0
steps:
- name: Prepare MSVC Developer Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Download Rust Nightly MSI
run: |
Invoke-WebRequest -Uri "https://win7revived.wearmed.xyz/rust-nightly-${{ matrix.version }}-x86_64-pc-windows-msvc.msi" -OutFile "rust-nightly.msi"
- name: Install Rust Nightly
run: |
Start-Process msiexec.exe -ArgumentList "/i rust-nightly.msi INSTALLDIR=$env:USERPROFILE\.cargo /quiet /norestart" -NoNewWindow -Wait
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cargo build
env:
RUSTFLAGS: -C target-feature=+crt-static
run: |
& "$env:USERPROFILE\.cargo\bin\cargo" build --profile release-lto --no-default-features --features win7,use_winit,use_wgpu,sound,opl,use_gilrs,use_serialport
- name: Copy files into install dir
run: |
Copy-Item -Path LICENSE, README.md, CHANGELOG.md, CREDITS.md, target\release-lto\martypc.exe -Destination install
- name: Rename install directory
run: Rename-Item -Path install -NewName martypc
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: martypc-windows7-gha
path: martypc