mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
build: make prereleases use debug symbols
This commit is contained in:
parent
a8efb4bd3b
commit
ef4c04013a
8 changed files with 39 additions and 12 deletions
12
.github/workflows/job_build_tr1.yml
vendored
12
.github/workflows/job_build_tr1.yml
vendored
|
@ -2,7 +2,11 @@ name: Build TR1X and the installer
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
workflow_dispatch:
|
inputs:
|
||||||
|
target:
|
||||||
|
type: string
|
||||||
|
description: "Target to build for"
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -12,11 +16,11 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- platform: linux
|
- platform: linux
|
||||||
just_target: tr1-package-linux
|
just_target: tr1-package-linux ${{ inputs.target }}
|
||||||
- platform: win
|
- platform: win
|
||||||
just_target: tr1-package-win-all
|
just_target: tr1-package-win-all ${{ inputs.target }}
|
||||||
- platform: win-installer
|
- platform: win-installer
|
||||||
just_target: tr1-package-win-installer
|
just_target: tr1-package-win-installer ${{ inputs.target }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
8
.github/workflows/job_build_tr1_macos.yml
vendored
8
.github/workflows/job_build_tr1_macos.yml
vendored
|
@ -3,6 +3,10 @@ name: Build TR1X and the installer (macOS)
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
target:
|
||||||
|
type: string
|
||||||
|
description: "Target to build for"
|
||||||
|
required: true
|
||||||
let_mac_fail:
|
let_mac_fail:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: "Do not require Mac builds to pass"
|
description: "Do not require Mac builds to pass"
|
||||||
|
@ -226,14 +230,14 @@ jobs:
|
||||||
- name: Build arm64 and create app bundle
|
- name: Build arm64 and create app bundle
|
||||||
run: |
|
run: |
|
||||||
BUILD_DIR=build-arm64
|
BUILD_DIR=build-arm64
|
||||||
BUILD_OPTIONS="src/tr1 --prefix=/tmp/TR1X.app --bindir=Contents/MacOS"
|
BUILD_OPTIONS="src/tr1 --prefix=/tmp/TR1X.app --bindir=Contents/MacOS --buildtype ${{ inputs.target }}"
|
||||||
meson setup $BUILD_DIR $BUILD_OPTIONS
|
meson setup $BUILD_DIR $BUILD_OPTIONS
|
||||||
meson install -C $BUILD_DIR
|
meson install -C $BUILD_DIR
|
||||||
|
|
||||||
- name: Build x86-64
|
- name: Build x86-64
|
||||||
run: |
|
run: |
|
||||||
BUILD_DIR=build-x86-64
|
BUILD_DIR=build-x86-64
|
||||||
BUILD_OPTIONS="src/tr1 --prefix=/tmp/TR1X.app --bindir=Contents/MacOS --cross-file tools/tr1/mac/x86-64_cross_file.txt"
|
BUILD_OPTIONS="src/tr1 --prefix=/tmp/TR1X.app --bindir=Contents/MacOS --cross-file tools/tr1/mac/x86-64_cross_file.txt --buildtype ${{ inputs.target }}"
|
||||||
meson setup $BUILD_DIR $BUILD_OPTIONS
|
meson setup $BUILD_DIR $BUILD_OPTIONS
|
||||||
meson compile -C $BUILD_DIR
|
meson compile -C $BUILD_DIR
|
||||||
|
|
||||||
|
|
8
.github/workflows/job_build_tr2.yml
vendored
8
.github/workflows/job_build_tr2.yml
vendored
|
@ -2,7 +2,11 @@ name: Build TR2X
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
workflow_dispatch:
|
inputs:
|
||||||
|
target:
|
||||||
|
type: string
|
||||||
|
description: "Target to build for"
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -12,7 +16,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- platform: win
|
- platform: win
|
||||||
just_target: tr2-package-win-all
|
just_target: tr2-package-win-all ${{ inputs.target }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
5
.github/workflows/pr_builds.yml
vendored
5
.github/workflows/pr_builds.yml
vendored
|
@ -14,6 +14,8 @@ jobs:
|
||||||
package_tr1_multiplatform:
|
package_tr1_multiplatform:
|
||||||
name: Build TR1
|
name: Build TR1
|
||||||
uses: ./.github/workflows/job_build_tr1.yml
|
uses: ./.github/workflows/job_build_tr1.yml
|
||||||
|
with:
|
||||||
|
target: 'debug'
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
package_tr1_mac:
|
package_tr1_mac:
|
||||||
|
@ -21,10 +23,13 @@ jobs:
|
||||||
if: vars.MACOS_ENABLE == 'true'
|
if: vars.MACOS_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr1_macos.yml
|
uses: ./.github/workflows/job_build_tr1_macos.yml
|
||||||
with:
|
with:
|
||||||
|
target: 'debug'
|
||||||
let_mac_fail: true
|
let_mac_fail: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
package_tr2_multiplatform:
|
package_tr2_multiplatform:
|
||||||
name: Build TR2
|
name: Build TR2
|
||||||
uses: ./.github/workflows/job_build_tr2.yml
|
uses: ./.github/workflows/job_build_tr2.yml
|
||||||
|
with:
|
||||||
|
target: 'debug'
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
5
.github/workflows/prerelease.yml
vendored
5
.github/workflows/prerelease.yml
vendored
|
@ -13,6 +13,8 @@ jobs:
|
||||||
name: Build TR1
|
name: Build TR1
|
||||||
if: vars.PRERELEASE_ENABLE == 'true'
|
if: vars.PRERELEASE_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr1.yml
|
uses: ./.github/workflows/job_build_tr1.yml
|
||||||
|
with:
|
||||||
|
target: 'debug'
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
package_tr1_mac:
|
package_tr1_mac:
|
||||||
|
@ -22,6 +24,7 @@ jobs:
|
||||||
vars.MACOS_ENABLE == 'true'
|
vars.MACOS_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr1_macos.yml
|
uses: ./.github/workflows/job_build_tr1_macos.yml
|
||||||
with:
|
with:
|
||||||
|
target: 'debug'
|
||||||
let_mac_fail: true
|
let_mac_fail: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
@ -29,6 +32,8 @@ jobs:
|
||||||
name: Build TR2
|
name: Build TR2
|
||||||
if: vars.PRERELEASE_ENABLE == 'true'
|
if: vars.PRERELEASE_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr2.yml
|
uses: ./.github/workflows/job_build_tr2.yml
|
||||||
|
with:
|
||||||
|
target: 'debug'
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
publish_prerelease:
|
publish_prerelease:
|
||||||
|
|
3
.github/workflows/release_tr1.yml
vendored
3
.github/workflows/release_tr1.yml
vendored
|
@ -32,6 +32,8 @@ jobs:
|
||||||
name: Build release assets
|
name: Build release assets
|
||||||
if: vars.RELEASE_ENABLE == 'true'
|
if: vars.RELEASE_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr1.yml
|
uses: ./.github/workflows/job_build_tr1.yml
|
||||||
|
with:
|
||||||
|
target: "release"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
package_mac:
|
package_mac:
|
||||||
|
@ -41,6 +43,7 @@ jobs:
|
||||||
vars.MACOS_ENABLE == 'true'
|
vars.MACOS_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr1_macos.yml
|
uses: ./.github/workflows/job_build_tr1_macos.yml
|
||||||
with:
|
with:
|
||||||
|
target: "release"
|
||||||
let_mac_fail: ${{ inputs.let_mac_fail == true || inputs.let_mac_fail == 'true' }}
|
let_mac_fail: ${{ inputs.let_mac_fail == true || inputs.let_mac_fail == 'true' }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
|
2
.github/workflows/release_tr2.yml
vendored
2
.github/workflows/release_tr2.yml
vendored
|
@ -32,6 +32,8 @@ jobs:
|
||||||
name: Build release assets
|
name: Build release assets
|
||||||
if: vars.RELEASE_ENABLE == 'true'
|
if: vars.RELEASE_ENABLE == 'true'
|
||||||
uses: ./.github/workflows/job_build_tr2.yml
|
uses: ./.github/workflows/job_build_tr2.yml
|
||||||
|
with:
|
||||||
|
target: "release"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
|
|
8
justfile
8
justfile
|
@ -54,10 +54,10 @@ tr1-build-win target='debug': (tr1-image-win "0") (_docker_run "-
|
||||||
tr1-build-win-config: (tr1-image-win-config "0") (_docker_run "rrdash/tr1x-config")
|
tr1-build-win-config: (tr1-image-win-config "0") (_docker_run "rrdash/tr1x-config")
|
||||||
tr1-build-win-installer: (tr1-image-win-installer "0") (_docker_run "rrdash/tr1x-installer")
|
tr1-build-win-installer: (tr1-image-win-installer "0") (_docker_run "rrdash/tr1x-installer")
|
||||||
|
|
||||||
tr1-package-linux: (tr1-build-linux "release") (_docker_run "rrdash/tr1x-linux" "package")
|
tr1-package-linux target='release': (tr1-build-linux target) (_docker_run "rrdash/tr1x-linux" "package")
|
||||||
tr1-package-win: (tr1-build-win "release") (_docker_run "rrdash/tr1x" "package")
|
tr1-package-win target='release': (tr1-build-win target) (_docker_run "rrdash/tr1x" "package")
|
||||||
tr1-package-win-all: (tr1-build-win "release") (tr1-build-win-config) (_docker_run "rrdash/tr1x" "package")
|
tr1-package-win-all target='release': (tr1-build-win target) (tr1-build-win-config) (_docker_run "rrdash/tr1x" "package")
|
||||||
tr1-package-win-installer: (tr1-build-win "release") (tr1-build-win-config) (_docker_run "rrdash/tr1x" "package" "-o" "tools/tr1/installer/Installer/Resources/release.zip") (tr1-build-win-installer)
|
tr1-package-win-installer target='release': (tr1-build-win target) (tr1-build-win-config) (_docker_run "rrdash/tr1x" "package" "-o" "tools/tr1/installer/Installer/Resources/release.zip") (tr1-build-win-installer)
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
git checkout "tools/tr1/installer/Installer/Resources/release.zip"
|
git checkout "tools/tr1/installer/Installer/Resources/release.zip"
|
||||||
exe_name=TR1X-$(tools/get_version 1)-Installer.exe
|
exe_name=TR1X-$(tools/get_version 1)-Installer.exe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue