Skip to content

Commit

Permalink
try referencing build workflows defined in mod repo? (open-goal#31)
Browse files Browse the repository at this point in the history
* try referencing a file we assume exists in mod repo

* remove unused inputs
  • Loading branch information
dallmeyer authored Sep 28, 2024
1 parent e7d4879 commit 6c756e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 238 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/create-mod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
name: "Windows Build"
needs: create_release
if: ${{ !inputs.skipWindows && inputs.buildBinaries }}
# assumes that this file is defined in your mod repo
uses: ./.github/workflows/windows-build-clang.yaml
with:
cmakePreset: "Release-windows-clang-static"
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
mkdir -p ./ci-artifacts/windows
mkdir -p ${{ inputs.outputDir }}/dist
chmod +x ./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_windows.sh
./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_windows.sh ./ci-artifacts/windows ./ci-artifacts/windows-binary ./
./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_windows.sh ./ci-artifacts/windows ./ci-artifacts/opengoal-windows-static ./
TAG_VAL=${{ needs.create_release.outputs.bundleTagName }}
7z a -tzip ${{ inputs.outputDir }}/dist/windows-${TAG_VAL}.zip ./ci-artifacts/windows/*
Expand All @@ -175,6 +176,7 @@ jobs:
name: "Linux Build"
needs: create_release
if: ${{ !inputs.skipLinux && inputs.buildBinaries }}
# assumes that this file is defined in your mod repo
uses: ./.github/workflows/linux-build-clang.yaml
with:
cmakePreset: "Release-linux-clang-static"
Expand Down Expand Up @@ -217,7 +219,7 @@ jobs:
mkdir -p ./ci-artifacts/linux
mkdir -p ${{ inputs.outputDir }}/dist
chmod +x ./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_unix.sh
./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_unix.sh ./ci-artifacts/linux ./ci-artifacts/linux-binary ./
./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_unix.sh ./ci-artifacts/linux ./ci-artifacts/opengoal-linux-static ./
TAG_VAL=${{ needs.create_release.outputs.bundleTagName }}
tar czf ${{ inputs.outputDir }}/dist/linux-${TAG_VAL}.tar.gz ./ci-artifacts/linux
Expand All @@ -232,6 +234,7 @@ jobs:
name: "MacOS Build"
needs: create_release
if: ${{ !inputs.skipMacOS && inputs.buildBinaries }}
# assumes that this file is defined in your mod repo
uses: ./.github/workflows/macos-build.yaml
with:
cmakePreset: "Release-macos-clang-static"
Expand Down Expand Up @@ -274,7 +277,7 @@ jobs:
mkdir -p ./ci-artifacts/macos-intel
mkdir -p ${{ inputs.outputDir }}/dist
chmod +x ./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_unix.sh
./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_unix.sh ./ci-artifacts/macos-intel ./ci-artifacts/macos-intel-binary ./
./__actions/mod-bundling-tools/scripts/create-mod-release/releases/extract_build_unix.sh ./ci-artifacts/macos-intel ./ci-artifacts/opengoal-macos-static ./
TAG_VAL=${{ needs.create_release.outputs.bundleTagName }}
tar czf ${{ inputs.outputDir }}/dist/macos-intel-${TAG_VAL}.tar.gz ./ci-artifacts/macos-intel
Expand Down
83 changes: 0 additions & 83 deletions .github/workflows/linux-build-clang.yaml

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/macos-build.yaml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/windows-build-clang.yaml

This file was deleted.

0 comments on commit 6c756e8

Please sign in to comment.