Change: remove release creation; use artifact instead #10
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 Tracks | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install Scoop - setup - build | |
shell: pwsh | |
run: | | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
scoop install just | |
just deps | |
make | |
gcc -E -x c tracks.pnml > tracks.nml | |
nmlc tracks.nml --grf=china-set-tracks.grf | |
- name: Pack Binaries | |
shell: pwsh | |
run: | | |
New-Item -ItemType Directory -Path release | |
Move-Item -Path china-set-tracks.grf -Destination release/ | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: chinas-set-tracks.grf | |
path: ./china-set-tracks.grf |