Refactor build scripts and remove unnecessary asset bundling #6
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: Build and Bundle Windows | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_windows: | |
# if: false # This workflow is disabled | |
runs-on: windows-latest | |
steps: | |
- run: git config --global core.autocrlf input | |
- uses: actions/checkout@v3 | |
- name: Setup msys2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
- name: Build wariosave | |
run: | | |
# Copy assets to the same directory as the executable | |
mkdir -p build/release | |
cd lib/ | |
make release | |
- name: Publish Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wariosave-artifacts-windows-x64 | |
path: build/release |