Skip to content

Windows Build

Windows Build #78

Workflow file for this run

name: Windows
run-name: Windows Build
on:
push:
branches: [ "master" ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'README_zh.md'
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: [windows-latest]
arch: [x64]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ matrix.os }}-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: prepare software
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: build
run: |
xrepo update-repo
xmake -v -y
cp build/windows/${{ matrix.arch }}/release/nes.exe nes-windows-${{ matrix.arch }}.exe
- uses: actions/upload-artifact@v4
with:
name: nes-windows-${{ matrix.arch }}.exe
path: nes-windows-${{ matrix.arch }}.exe