forked from OpenGOAL-Mods/OG-Mod-Base
-
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.
Merge remote-tracking branch 'modbase/main'
- Loading branch information
Showing
5,499 changed files
with
2,506,581 additions
and
335,908 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,35 @@ | ||
name: 🏭 Draft Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump: | ||
description: 'Semver Bump Type' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
cut-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Docs - https://github.com/mathieudutour/github-tag-action | ||
# Workflows cannot trigger other workflows implicitly | ||
# - https://github.community/t/github-actions-workflow-not-triggering-with-tag-push/17053/7 | ||
- name: Bump Version and Push Tag | ||
if: github.repository == 'open-goal/jak-project' | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.BOT_PAT }} | ||
tag_prefix: v | ||
default_bump: ${{ github.event.inputs.bump }} | ||
|
||
- name: Create Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_PAT }} | ||
run: gh release create ${{ steps.tag_version.outputs.new_tag }} --generate-notes --draft --repo open-goal/jak-project |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,6 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
timeout-minutes: 60 | ||
|
||
env: # overrides: https://github.com/mbitsnbites/buildcache/blob/master/doc/configuration.md | ||
BUILDCACHE_MAX_CACHE_SIZE: 1000000000 # 1gb | ||
BUILDCACHE_COMPRESS_FORMAT: ZSTD | ||
BUILDCACHE_COMPRESS_LEVEL: 19 | ||
BUILDCACHE_DIRECT_MODE: true | ||
BUILDCACHE_LOG_FILE: ${{ github.workspace }}/buildcache.log | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
@@ -31,15 +24,22 @@ jobs: | |
run: | | ||
sudo apt update | ||
sudo apt install build-essential cmake \ | ||
clang gcc g++ lcov make nasm libxrandr-dev \ | ||
clang gcc-10 g++-10 lcov make nasm libxrandr-dev \ | ||
libxinerama-dev libxcursor-dev libpulse-dev \ | ||
libxi-dev zip ninja-build libgl1-mesa-dev libssl-dev | ||
- name: Setup Buildcache | ||
uses: mikehardy/[email protected] | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 | ||
sudo update-alternatives --set gcc /usr/bin/gcc-10 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100 | ||
sudo update-alternatives --set g++ /usr/bin/g++-10 | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
cache_key: linux-ubuntu-20.04-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }} | ||
buildcache_tag: v0.28.1 | ||
variant: sccache | ||
key: linux-ubuntu-20.04-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
restore-keys: linux-ubuntu-20.04-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }} | ||
max-size: 1000M | ||
|
||
- name: CMake Generation | ||
env: | ||
|
@@ -48,18 +48,11 @@ jobs: | |
run: | | ||
cmake -B build --preset=${{ inputs.cmakePreset }} \ | ||
-DCODE_COVERAGE=OFF \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=${{ github.workspace }}/buildcache/bin/buildcache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ github.workspace }}/buildcache/bin/buildcache | ||
-DCMAKE_C_COMPILER_LAUNCHER=sccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache | ||
- name: Build Project | ||
run: cmake --build build --parallel $((`nproc`)) -- -w dupbuild=warn | ||
|
||
- name: Run Tests | ||
run: ./test.sh | ||
|
||
# - name: Submit Coverage Report to Codacy | ||
# uses: codacy/codacy-coverage-reporter-action@v1 | ||
# continue-on-error: true | ||
# with: | ||
# project-token: ${{ secrets.CODACY_PROJECT_KEY }} | ||
# coverage-reports: ./build/goalc-test_coverage.info |
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
Oops, something went wrong.