Try to build in Release mode

master
Evil Eye 3 weeks ago
parent 853c4287d2
commit 793a56a882

@ -6,10 +6,12 @@ on:
env: env:
BUILD_TYPE: RelWithDebInfo BUILD_TYPE: RelWithDebInfo
VCPKG_DEPS_TAG: 2024-11-10
jobs: jobs:
Ubuntu: Ubuntu:
# TODO remove
if: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -68,6 +70,9 @@ jobs:
# name: build_artifact.7z # name: build_artifact.7z
MacOS: MacOS:
# TODO remove
if: false
runs-on: macos-latest runs-on: macos-latest
steps: steps:
@ -89,17 +94,20 @@ jobs:
cd build cd build
make -j $(sysctl -n hw.logicalcpu) package make -j $(sysctl -n hw.logicalcpu) package
# This is a fairly silly job to work around `env` not being available in `with`
Output-Envs: Output-Envs:
name: Pass environment variables along name: Read .env file and expose it as output
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
VCPKG_DEPS_TAG: ${{ env.VCPKG_DEPS_TAG }} VCPKG_DEPS_TAG: ${{ env.VCPKG_DEPS_TAG }}
BUILD_TYPE: ${{ env.BUILD_TYPE }} BUILD_TYPE: ${{ env.BUILD_TYPE }}
steps: steps:
- run: echo "Doing nothing" - uses: actions/checkout@v2
- run: cat "${{ github.workspace }}/CI/github.env" >> $GITHUB_ENV
Windows: Windows:
# TODO remove
if: false
needs: needs:
- Output-Envs - Output-Envs

@ -0,0 +1,24 @@
name: Release
on:
- push
jobs:
Output-Envs:
name: Read .env file and expose it as output
runs-on: ubuntu-latest
outputs:
VCPKG_DEPS_TAG: ${{ env.VCPKG_DEPS_TAG }}
steps:
- uses: actions/checkout@v2
- run: cat "${{ github.workspace }}/CI/github.env" >> $GITHUB_ENV
Windows:
needs:
- Output-Envs
uses: ./.github/workflows/windows.yml
with:
image: "2022"
vcpkg-deps-tag: ${{ needs.Output-Envs.outputs.VCPKG_DEPS_TAG }}
build-type: Release
package: true

@ -14,6 +14,9 @@ on:
build-type: build-type:
default: RelWithDebInfo default: RelWithDebInfo
type: string type: string
package:
default: false
type: boolean
jobs: jobs:
Windows: Windows:
@ -166,19 +169,25 @@ jobs:
run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH} run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH}
- name: Run components tests - name: Run components tests
if: ${{ ! inputs.package }}
run: build/components-tests.exe run: build/components-tests.exe
- name: Run OpenMW tests - name: Run OpenMW tests
if: ${{ ! inputs.package }}
run: build/openmw-tests.exe run: build/openmw-tests.exe
- name: Run OpenMW-CS tests - name: Run OpenMW-CS tests
if: ${{ ! inputs.package }}
run: build/openmw-cs-tests.exe run: build/openmw-cs-tests.exe
- name: Run detournavigator navmeshtilescache benchmark - name: Run detournavigator navmeshtilescache benchmark
if: ${{ ! inputs.package }}
run: build/openmw_detournavigator_navmeshtilescache_benchmark.exe run: build/openmw_detournavigator_navmeshtilescache_benchmark.exe
- name: Run settings access benchmark - name: Run settings access benchmark
if: ${{ ! inputs.package }}
run: build/openmw_settings_access_benchmark.exe run: build/openmw_settings_access_benchmark.exe
- name: Run esm refid benchmark - name: Run esm refid benchmark
if: ${{ ! inputs.package }}
run: build/openmw_esm_refid_benchmark.exe run: build/openmw_esm_refid_benchmark.exe

@ -0,0 +1 @@
VCPKG_DEPS_TAG=2024-11-10
Loading…
Cancel
Save