Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions .github/actions/bundle_release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,27 @@ runs:
- name: Compress Windows Release
shell: bash
run: |
zip -j CortexCommand.windows.zip \
"release/Cortex Command.exe" \
zip --must-match -j CortexCommand.windows.zip \
"release/Cortex Command.exe/Cortex Command.exe" \
external/lib/win/{fmod,SDL2}.dll

- name: Compress Linux Release
shell: bash
run: |
zip -j CortexCommand.linux.zip \
zip --must-match -j CortexCommand.linux.zip \
"release/CortexCommand (Linux)/CortexCommand.AppImage" \
external/lib/linux/x86_64/libfmod.so*

- name: Compress OSX Release
shell: bash
run: |
zip -j CortexCommand.macos.zip \
"release/CortexCommand (macOS)/CortexCommand" \
zip --must-match -j CortexCommand.macos.zip \
"release/CortexCommand (macOS)/CortexCommand.tar" \
external/lib/macos/libfmod.dylib

- name: Package Data files
shell: bash
run: |
zip -r -u CortexCommand.windows.zip Data
zip -r -u CortexCommand.linux.zip Data
zip -r -u CortexCommand.macos.zip Data





zip --must-match -r -u CortexCommand.windows.zip Data
zip --must-match -r -u CortexCommand.linux.zip Data
zip --must-match -r -u CortexCommand.macos.zip Data
43 changes: 8 additions & 35 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
fi

- name: Checkout code
if: !steps.check_manual_run.outputs.needs_build
if: ${{ !steps.check_manual_run.outputs.needs_build }}
uses: actions/checkout@v3

- name: fetch tags
if: !steps.check_manual_run.outputs.needs_build
if: ${{ !steps.check_manual_run.outputs.needs_build }}
run: git fetch --tags origin

- name: Check if tags point to the same commit or if the workflow was manually triggered
if: !steps.check_manual_run.outputs.needs_build
if: ${{ !steps.check_manual_run.outputs.needs_build }}
id: check_tags
run: |
curr_sha=$(git rev-parse HEAD)
Expand All @@ -70,6 +70,8 @@ jobs:
uses: ./.github/workflows/meson.yml
with:
upload_artefacts: true
build_type: "debug"
debug_level: "release"

build-msbuild-releases:
name: Windows Release Build
Expand All @@ -80,6 +82,7 @@ jobs:
uses: ./.github/workflows/msbuild.yml
with:
upload_artefacts: true
build_configuration: "Debug Release"

release:
name: Publish Release
Expand All @@ -94,38 +97,8 @@ jobs:
- name: fetch tags
run: git fetch --tags origin

- run: mkdir release

- name: Download build artefacts
uses: actions/download-artifact@v3
with:
path: release

- run: ls -R release

- name: Compress Windows Release
run: |
zip -j CortexCommand.windows.zip \
"release/Cortex Command.exe" \
external/lib/win/{fmod,SDL2}.dll

- name: Compress Linux Release
run: |
zip -j CortexCommand.linux.zip \
"release/CortexCommand (Linux)/CortexCommand.AppImage" \
external/lib/linux/x86_64/libfmod.so*

- name: Compress OSX Release
run: |
zip -j CortexCommand.macos.zip \
"release/CortexCommand (macOS)/CortexCommand" \
external/lib/macos/libfmod.dylib

- name: Package Data files
run: |
zip -r -u CortexCommand.windows.zip Data
zip -r -u CortexCommand.linux.zip Data
zip -r -u CortexCommand.macos.zip Data
- name: Bundle Release Assets
uses: ./.github/actions/bundle_release

- name: Get Date
id: get_date
Expand Down
1 change: 0 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"env": {
"CC": "gcc-12",
"CXX": "g++-12",
"CXX_LD": "g++-12"
}
}
}
Expand Down