-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
154 additions
and
2 deletions.
There are no files selected for viewing
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
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 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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