Skip to content

Commit

Permalink
building versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpcarr committed Nov 15, 2024
1 parent 602f0e8 commit b3bdc8b
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/cyberrace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This is a basic workflow to help you get started with Actions

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "glf" ]
pull_request:
branches: [ "glf" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
outputs:
build_number: ${{ steps.version.outputs.build_number }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: version
run: |
echo "build_number=$(git rev-list d5dc63720abb4a5a4ca3c6724c7497e593e14eb3..HEAD --count)" >> $GITHUB_OUTPUT
- name: Modify locked property
run: |
jq '.locked = 1' cyberrace-dev/gamedata.json > temp.json && mv temp.json cyberrace-dev/gamedata.json
working-directory: ${{ github.workspace }}

- name: Download vpxtool
run: |
wget https://github.com/francisdb/vpxtool/releases/download/v0.13.0/vpxtool-Linux-x86_64-musl-v0.13.0.tar.gz
tar -xzf vpxtool-Linux-x86_64-musl-v0.13.0.tar.gz
- name: Run Command
run: |
git rev-list --max-parents=0 HEAD
./vpxtool assemble cyberrace-dev
mv ./cyberrace-dev.vpx ./CyberRace${{steps.version.outputs.build_number}}.vpx
- uses: actions/upload-artifact@v4
with:
name: CyberRace_${{ steps.version.outputs.build_number }}
path: ./CyberRace${{steps.version.outputs.build_number}}.vpx
2 changes: 1 addition & 1 deletion dest/tablescript.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ Sub ConfigureGlfDevices()
With CreateGlfBallDevice("plunger")
.BallSwitches = Array("s_plunger")
.EjectTargets = Array("sw27")
.EjectStrength = 150
.EjectStrength = 40
.MechanicalEject = True
.DefaultDevice = True
End With
Expand Down
95 changes: 95 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"grunt-vpx": "grunt watch:vpx",
"grunt-mpf": "grunt watch:mpf",
"build": "shx rm -rf ./cyberrace-dev && vpxtool extract ../cyberrace-dev.vpx && shx cp ./dest/tablescript.vbs ./cyberrace-dev/script.vbs",
"update-glf": "curl -o ./src/glf/glf.vbs https://raw.githubusercontent.com/mpcarr/vpx-glf/refs/heads/main/scripts/vpx-glf.vbs",
"mpf": "powershell -ExecutionPolicy Bypass -File C:\\Users\\carr-\\Documents\\development\\mpf080\\mpfenv\\Scripts\\Activate.ps1"
},
Expand All @@ -18,5 +19,8 @@
"grunt-contrib-watch": "^1.1.0",
"grunt-exec": "^3.0.0",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"shx": "^0.3.4"
}
}
2 changes: 1 addition & 1 deletion src/game/_logicStartBanner-vpx.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Sub ConfigureGlfDevices()
With CreateGlfBallDevice("plunger")
.BallSwitches = Array("s_plunger")
.EjectTargets = Array("sw27")
.EjectStrength = 150
.EjectStrength = 40
.MechanicalEject = True
.DefaultDevice = True
End With
Expand Down

0 comments on commit b3bdc8b

Please sign in to comment.