mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-06 14:54:22 +00:00
fix: update continue-on-error condition in CI workflow and add macOS RelWithDebInfo build preset
This commit is contained in:
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
build-and-test:
|
build-and-test:
|
||||||
name: Build & Test (${{ matrix.os }})
|
name: Build & Test (${{ matrix.os }})
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
continue-on-error: ${{ github.event_name != 'push' || !startsWith(github.ref, 'refs/tags/v') }}
|
continue-on-error: ${{ github.event_name == 'pull_request' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|||||||
@@ -162,6 +162,13 @@
|
|||||||
"rhs": "Darwin"
|
"rhs": "Darwin"
|
||||||
},
|
},
|
||||||
"binaryDir": "${sourceDir}/build/macos"
|
"binaryDir": "${sourceDir}/build/macos"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-relwithdebinfo",
|
||||||
|
"inherits": ["macos", "relwithdebinfo-config"],
|
||||||
|
"displayName": "[RelWithDebInfo] MacOS",
|
||||||
|
"description": "Create a RelWithDebInfo build for MacOS",
|
||||||
|
"binaryDir": "${sourceDir}/build/macos-relwithdebinfo"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"buildPresets": [
|
"buildPresets": [
|
||||||
@@ -255,7 +262,7 @@
|
|||||||
{
|
{
|
||||||
"name": "macos-relwithdebinfo",
|
"name": "macos-relwithdebinfo",
|
||||||
"inherits": "default",
|
"inherits": "default",
|
||||||
"configurePreset": "macos",
|
"configurePreset": "macos-relwithdebinfo",
|
||||||
"displayName": "[RelWithDebInfo] MacOS",
|
"displayName": "[RelWithDebInfo] MacOS",
|
||||||
"description": "This preset is used to build in release mode with debug info on MacOS",
|
"description": "This preset is used to build in release mode with debug info on MacOS",
|
||||||
"configuration": "RelWithDebInfo"
|
"configuration": "RelWithDebInfo"
|
||||||
@@ -374,7 +381,7 @@
|
|||||||
{
|
{
|
||||||
"name": "macos-relwithdebinfo",
|
"name": "macos-relwithdebinfo",
|
||||||
"inherits": "default",
|
"inherits": "default",
|
||||||
"configurePreset": "macos",
|
"configurePreset": "macos-relwithdebinfo",
|
||||||
"displayName": "[RelWithDebInfo] MacOS",
|
"displayName": "[RelWithDebInfo] MacOS",
|
||||||
"description": "Runs all tests on a MacOS configuration",
|
"description": "Runs all tests on a MacOS configuration",
|
||||||
"configuration": "RelWithDebInfo"
|
"configuration": "RelWithDebInfo"
|
||||||
@@ -603,7 +610,7 @@
|
|||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"type": "configure",
|
"type": "configure",
|
||||||
"name": "macos"
|
"name": "macos-relwithdebinfo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "build",
|
"type": "build",
|
||||||
|
|||||||
Reference in New Issue
Block a user