generated 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 pull request #7 from OpenGOAL-Mods/rco
modbase merge
- Loading branch information
Showing
128 changed files
with
23,506 additions
and
3,056 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
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
libxi-dev zip ninja-build libgl1-mesa-dev libssl-dev | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: linux-ubuntu-20.04--Release-linux-clang-asan-${{ github.sha }} | ||
|
@@ -43,16 +43,9 @@ jobs: | |
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache | ||
- name: Build goalc (master) | ||
run: cmake --build build --parallel $((`nproc`)) --target goalc | ||
|
||
- name: Compile and preserve (master) | ||
run: | | ||
./build/goalc/goalc --game jak1 --cmd "(make-group \"all-code\")" | ||
./build/goalc/goalc --game jak2 --cmd "(make-group \"all-code\")" | ||
./build/goalc/goalc --game jak3 --cmd "(make-group \"all-code\")" | ||
mv ./out/jak1/obj ./out/jak1/obj.master | ||
mv ./out/jak2/obj ./out/jak2/obj.master | ||
mv ./out/jak3/obj ./out/jak3/obj.master | ||
cmake --build build --parallel $((`nproc`)) --target goalc | ||
mv ./build ./build.master | ||
- name: Checkout PR | ||
uses: actions/checkout@v4 | ||
|
@@ -71,6 +64,15 @@ jobs: | |
- name: Build goalc (PR) | ||
run: cmake --build build --parallel $((`nproc`)) --target goalc | ||
|
||
- name: Compile and preserve (master) | ||
run: | | ||
./build.master/goalc/goalc --game jak1 --cmd "(make-group \"all-code\")" | ||
./build.master/goalc/goalc --game jak2 --cmd "(make-group \"all-code\")" | ||
./build.master/goalc/goalc --game jak3 --cmd "(make-group \"all-code\")" | ||
mv ./out/jak1/obj ./out/jak1/obj.master | ||
mv ./out/jak2/obj ./out/jak2/obj.master | ||
mv ./out/jak3/obj ./out/jak3/obj.master | ||
- name: Compile and preserve (PR) | ||
run: | | ||
./build/goalc/goalc --game jak1 --cmd "(make-group \"all-code\")" | ||
|
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
libudev-dev libopenal-dev libflac-dev libogg-dev libvorbis-dev | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: linux-ubuntu-20.04-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
|
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 |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
sudo update-alternatives --set g++ /usr/bin/g++-10 | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: linux-ubuntu-20.04-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
|
@@ -54,5 +54,5 @@ jobs: | |
- name: Build Project | ||
run: cmake --build build --parallel $((`nproc`)) -- -w dupbuild=warn | ||
|
||
- name: Run Tests | ||
run: ./test.sh | ||
# - name: Run Tests | ||
# run: ./test.sh |
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
run: arch -arm64 brew install cmake ninja | ||
|
||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: macos-12-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
run: brew install cmake nasm ninja | ||
|
||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: macos-12-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
|
@@ -47,8 +47,8 @@ jobs: | |
- name: Build Project | ||
run: cmake --build build --parallel $((`sysctl -n hw.logicalcpu`)) | ||
|
||
- name: Run Tests | ||
run: ./test.sh | ||
# - name: Run Tests | ||
# run: ./test.sh | ||
|
||
- name: Prepare artifacts | ||
if: ${{ inputs.uploadArtifacts }} | ||
|
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 |
---|---|---|
@@ -1,14 +1,48 @@ | ||
name: 🏭 Release Pipeline | ||
name: 🏭 Draft Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
inputs: | ||
bump: | ||
description: 'Semver Bump Type' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
cut-release: | ||
name: Cut Release | ||
runs-on: ubuntu-latest | ||
outputs: | ||
new_tag: ${{ steps.set_tag.outputs.new_tag }} | ||
steps: | ||
# Docs - https://github.com/mathieudutour/github-tag-action | ||
- name: Bump Version and Push Tag | ||
if: github.repository == 'OpenGOAL-Mods/OG-Mod-Base' | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_prefix: v | ||
default_bump: ${{ github.event.inputs.bump }} | ||
|
||
- name: Create Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh release create ${{ steps.tag_version.outputs.new_tag }} --generate-notes --draft --repo ${{ github.repository }} | ||
|
||
- name: Output new tag | ||
id: set_tag | ||
run: | | ||
echo "new_tag=${{ steps.tag_version.outputs.new_tag }}" >> $GITHUB_OUTPUT | ||
# Windows | ||
build_windows_clang: | ||
name: "🖥️ Windows" | ||
|
@@ -29,26 +63,29 @@ jobs: | |
uploadArtifacts: true | ||
secrets: inherit | ||
|
||
# # macOS | ||
# build_macos_intel: | ||
# name: "🍎 MacOS" | ||
# uses: ./.github/workflows/macos-build.yaml | ||
# with: | ||
# cmakePreset: "Release-macos-clang-static" | ||
# cachePrefix: "static" | ||
# uploadArtifacts: true | ||
# secrets: inherit | ||
# macOS | ||
build_macos_intel: | ||
name: "🍎 MacOS" | ||
uses: ./.github/workflows/macos-build.yaml | ||
with: | ||
cmakePreset: "Release-macos-clang-static" | ||
cachePrefix: "static" | ||
uploadArtifacts: true | ||
secrets: inherit | ||
|
||
# Upload the Artifacts | ||
upload_artifacts: | ||
needs: | ||
- cut-release | ||
- build_windows_clang | ||
- build_linux_clang | ||
# - build_macos_intel | ||
- build_macos_intel | ||
name: "Upload Artifacts" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.cut-release.outputs.new_tag }} | ||
|
||
- name: Prepare Artifact Folder | ||
run: mkdir -p ./ci-artifacts/final | ||
|
@@ -66,7 +103,7 @@ jobs: | |
mkdir -p ./ci-artifacts/linux | ||
./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/linux ./ci-artifacts/opengoal-linux-static ./ | ||
pushd ci-artifacts/linux | ||
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}') | ||
TAG_VAL=${{ needs.cut-release.outputs.new_tag }} | ||
tar czf ../final/opengoal-linux-${TAG_VAL}.tar.gz . | ||
popd | ||
chmod +x ./ci-artifacts/opengoal-linux-static/lsp/lsp | ||
|
@@ -76,31 +113,29 @@ jobs: | |
run: | | ||
mkdir -p ./ci-artifacts/windows | ||
./.github/scripts/releases/extract_build_windows.sh ./ci-artifacts/windows ./ci-artifacts/opengoal-windows-static ./ | ||
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}') | ||
TAG_VAL=${{ needs.cut-release.outputs.new_tag }} | ||
7z a -tzip ./ci-artifacts/final/opengoal-windows-${TAG_VAL}.zip ./ci-artifacts/windows/* | ||
cp ./ci-artifacts/opengoal-windows-static/lsp.exe ./ci-artifacts/final/opengoal-lsp-windows-${TAG_VAL}.exe | ||
# - name: Prepare macOS Build Assets | ||
# run: | | ||
# mkdir -p ./ci-artifacts/macos | ||
# ./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/macos ./ci-artifacts/opengoal-macos-static ./ | ||
# pushd ci-artifacts/macos | ||
# TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}') | ||
# tar czf ../final/opengoal-macos-intel-${TAG_VAL}.tar.gz . | ||
# popd | ||
# chmod +x ./ci-artifacts/opengoal-macos-static/lsp/lsp | ||
# cp ./ci-artifacts/opengoal-macos-static/lsp/lsp ./ci-artifacts/final/opengoal-lsp-macos-intel-${TAG_VAL}.bin | ||
- name: Prepare macOS Build Assets | ||
run: | | ||
mkdir -p ./ci-artifacts/macos | ||
./.github/scripts/releases/extract_build_unix.sh ./ci-artifacts/macos ./ci-artifacts/opengoal-macos-static ./ | ||
pushd ci-artifacts/macos | ||
TAG_VAL=${{ needs.cut-release.outputs.new_tag }} | ||
tar czf ../final/opengoal-macos-intel-${TAG_VAL}.tar.gz . | ||
popd | ||
chmod +x ./ci-artifacts/opengoal-macos-static/lsp/lsp | ||
cp ./ci-artifacts/opengoal-macos-static/lsp/lsp ./ci-artifacts/final/opengoal-lsp-macos-intel-${TAG_VAL}.bin | ||
- name: Upload Assets | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}') | ||
gh release upload "${TAG_VAL}" ${{ github.WORKSPACE }}/ci-artifacts/final/* --repo ${{ github.repository }} --clobber | ||
gh release upload ${{ needs.cut-release.outputs.new_tag }} ${{ github.WORKSPACE }}/ci-artifacts/final/* --repo ${{ github.repository }} --clobber | ||
- name: Publish Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
TAG_VAL=$(echo ${{ github.REF }} | awk -F'refs/tags/' '{print $2}') | ||
gh release edit ${TAG_VAL} --draft=false --repo ${{ github.repository }} | ||
gh release edit ${{ needs.cut-release.outputs.new_tag }} --draft=false --repo ${{ github.repository }} |
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
} | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: windows-2022-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
} | ||
- name: Setup sccache | ||
uses: hendrikmuhs/[email protected].13 | ||
uses: hendrikmuhs/[email protected].14 | ||
with: | ||
variant: sccache | ||
key: windows-2022-${{ inputs.cachePrefix }}-${{ inputs.cmakePreset }}-${{ github.sha }} | ||
|
@@ -56,10 +56,10 @@ jobs: | |
set CL=/MP | ||
cmake --build build --parallel %NUMBER_OF_PROCESSORS% | ||
- name: Run Tests | ||
timeout-minutes: 10 | ||
env: | ||
GTEST_OUTPUT: "xml:opengoal-test-report.xml" | ||
run: | | ||
./build/bin/goalc-test.exe --gtest_color=yes --gtest_brief=0 --gtest_filter="-*MANUAL_TEST*" | ||
# - name: Run Tests | ||
# timeout-minutes: 10 | ||
# env: | ||
# GTEST_OUTPUT: "xml:opengoal-test-report.xml" | ||
# run: | | ||
# ./build/bin/goalc-test.exe --gtest_color=yes --gtest_brief=0 --gtest_filter="-*MANUAL_TEST*" | ||
|
Oops, something went wrong.