mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-25 18:15:00 +00:00
Try to build in Release mode
This commit is contained in:
parent
853c4287d2
commit
793a56a882
@ -6,10 +6,12 @@ on:
|
||||
|
||||
env:
|
||||
BUILD_TYPE: RelWithDebInfo
|
||||
VCPKG_DEPS_TAG: 2024-11-10
|
||||
|
||||
jobs:
|
||||
Ubuntu:
|
||||
# TODO remove
|
||||
if: false
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -68,6 +70,9 @@ jobs:
|
||||
# name: build_artifact.7z
|
||||
|
||||
MacOS:
|
||||
# TODO remove
|
||||
if: false
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
@ -89,17 +94,20 @@ jobs:
|
||||
cd build
|
||||
make -j $(sysctl -n hw.logicalcpu) package
|
||||
|
||||
# This is a fairly silly job to work around `env` not being available in `with`
|
||||
Output-Envs:
|
||||
name: Pass environment variables along
|
||||
name: Read .env file and expose it as output
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
VCPKG_DEPS_TAG: ${{ env.VCPKG_DEPS_TAG }}
|
||||
BUILD_TYPE: ${{ env.BUILD_TYPE }}
|
||||
steps:
|
||||
- run: echo "Doing nothing"
|
||||
- uses: actions/checkout@v2
|
||||
- run: cat "${{ github.workspace }}/CI/github.env" >> $GITHUB_ENV
|
||||
|
||||
Windows:
|
||||
# TODO remove
|
||||
if: false
|
||||
|
||||
needs:
|
||||
- Output-Envs
|
||||
|
24
.github/workflows/release.yml
vendored
Normal file
24
.github/workflows/release.yml
vendored
Normal file
@ -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
|
9
.github/workflows/windows.yml
vendored
9
.github/workflows/windows.yml
vendored
@ -14,6 +14,9 @@ on:
|
||||
build-type:
|
||||
default: RelWithDebInfo
|
||||
type: string
|
||||
package:
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
Windows:
|
||||
@ -166,19 +169,25 @@ jobs:
|
||||
run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH}
|
||||
|
||||
- name: Run components tests
|
||||
if: ${{ ! inputs.package }}
|
||||
run: build/components-tests.exe
|
||||
|
||||
- name: Run OpenMW tests
|
||||
if: ${{ ! inputs.package }}
|
||||
run: build/openmw-tests.exe
|
||||
|
||||
- name: Run OpenMW-CS tests
|
||||
if: ${{ ! inputs.package }}
|
||||
run: build/openmw-cs-tests.exe
|
||||
|
||||
- name: Run detournavigator navmeshtilescache benchmark
|
||||
if: ${{ ! inputs.package }}
|
||||
run: build/openmw_detournavigator_navmeshtilescache_benchmark.exe
|
||||
|
||||
- name: Run settings access benchmark
|
||||
if: ${{ ! inputs.package }}
|
||||
run: build/openmw_settings_access_benchmark.exe
|
||||
|
||||
- name: Run esm refid benchmark
|
||||
if: ${{ ! inputs.package }}
|
||||
run: build/openmw_esm_refid_benchmark.exe
|
||||
|
1
CI/github.env
Normal file
1
CI/github.env
Normal file
@ -0,0 +1 @@
|
||||
VCPKG_DEPS_TAG=2024-11-10
|
Loading…
Reference in New Issue
Block a user