This commit is contained in:
309
.github/workflows/ci.yml
vendored
309
.github/workflows/ci.yml
vendored
@@ -7,165 +7,164 @@
|
||||
},
|
||||
pull_request: {
|
||||
branches: [ master ]
|
||||
},
|
||||
workflow_dispatch: {}
|
||||
}
|
||||
},
|
||||
|
||||
jobs: {
|
||||
macos-xcode: {
|
||||
runs-on: macos-13,
|
||||
env: {
|
||||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: checkout,
|
||||
uses: actions/checkout@v4,
|
||||
with: { submodules: true }
|
||||
},
|
||||
{
|
||||
name: install Boost,
|
||||
run: brew install Boost@1.85
|
||||
},
|
||||
{
|
||||
name: install SFML,
|
||||
run: ./.github/workflows/scripts/mac/install-sfml.sh
|
||||
},
|
||||
{
|
||||
name: patch Xcode project,
|
||||
run: ./.github/workflows/scripts/mac/fix-xcode-proj.sh
|
||||
},
|
||||
{
|
||||
name: build,
|
||||
run: ./.github/workflows/scripts/mac/xcode-build.sh
|
||||
},
|
||||
{
|
||||
name: unit tests,
|
||||
run: ./.github/workflows/scripts/mac/run-tests.sh
|
||||
}
|
||||
]
|
||||
},
|
||||
macos-scons: {
|
||||
runs-on: macos-13,
|
||||
steps: [
|
||||
{
|
||||
name: checkout,
|
||||
uses: actions/checkout@v4,
|
||||
with: { submodules: true }
|
||||
},
|
||||
{
|
||||
name: install dependencies,
|
||||
run: brew install scons SFML@2 Boost@1.85
|
||||
},
|
||||
{
|
||||
name: build and unit test,
|
||||
run: ./.github/workflows/scripts/mac/scons-build.sh test=true
|
||||
}
|
||||
]
|
||||
},
|
||||
win-vs32: {
|
||||
runs-on: windows-2022,
|
||||
env: {
|
||||
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: Export GitHub Actions cache environment variables,
|
||||
uses: actions/github-script@v7,
|
||||
with: {
|
||||
script: "core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');"
|
||||
}
|
||||
},
|
||||
{
|
||||
name: checkout,
|
||||
uses: actions/checkout@v4,
|
||||
with: { submodules: true }
|
||||
},
|
||||
{
|
||||
name: install dependencies,
|
||||
run: '${{ github.workspace }}\.github\workflows\scripts\win\install-deps.bat x86',
|
||||
working-directory: proj/vs2017
|
||||
},
|
||||
{
|
||||
name: build,
|
||||
run: '.\.github\workflows\scripts\win\msvc-build.bat x86'
|
||||
}
|
||||
]
|
||||
},
|
||||
win-vs64: {
|
||||
runs-on: windows-2022,
|
||||
env: {
|
||||
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: Export GitHub Actions cache environment variables,
|
||||
uses: actions/github-script@v7,
|
||||
with: {
|
||||
script: "core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');"
|
||||
}
|
||||
},
|
||||
{
|
||||
name: checkout,
|
||||
uses: actions/checkout@v4,
|
||||
with: { submodules: true }
|
||||
},
|
||||
{
|
||||
name: install dependencies,
|
||||
run: '${{ github.workspace }}\.github\workflows\scripts\win\install-deps.bat x64',
|
||||
working-directory: proj/vs2017
|
||||
},
|
||||
{
|
||||
name: build,
|
||||
run: '.\.github\workflows\scripts\win\msvc-build.bat x64'
|
||||
},
|
||||
{
|
||||
name: unit tests,
|
||||
run: '.\.github\workflows\scripts\win\run-tests.bat'
|
||||
}
|
||||
]
|
||||
},
|
||||
win-scons: {
|
||||
runs-on: windows-2022,
|
||||
env: {
|
||||
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: Export GitHub Actions cache environment variables,
|
||||
uses: actions/github-script@v7,
|
||||
with: {
|
||||
script: "core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');"
|
||||
}
|
||||
},
|
||||
{
|
||||
name: checkout,
|
||||
uses: actions/checkout@v4,
|
||||
with: { submodules: true }
|
||||
},
|
||||
{
|
||||
name: install build dependencies,
|
||||
run: 'vcpkg install libxml2 && pip install scons'
|
||||
},
|
||||
{
|
||||
name: install dependencies,
|
||||
run: '${{ github.workspace }}\.github\workflows\scripts\win\install-deps.bat x64',
|
||||
working-directory: proj/vs2017
|
||||
},
|
||||
{
|
||||
name: build and unit test,
|
||||
run: '.\.github\workflows\scripts\win\scons-build.bat test=true'
|
||||
},
|
||||
{
|
||||
name: warn about failure to launch tests,
|
||||
run: 'echo "::warning title=UNIT-TESTS::unit tests failed for win-scons"',
|
||||
shell: bash,
|
||||
if: "${{ hashFiles('build/test/passed') == '' }}"
|
||||
}
|
||||
]
|
||||
},
|
||||
# win-mingw: {
|
||||
# macos-xcode: {
|
||||
# runs-on: macos-13,
|
||||
# env: {
|
||||
# DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
|
||||
# },
|
||||
# steps: [
|
||||
# {
|
||||
# name: checkout,
|
||||
# uses: actions/checkout@v4,
|
||||
# with: { submodules: true }
|
||||
# },
|
||||
# {
|
||||
# name: install Boost,
|
||||
# run: brew install Boost@1.85
|
||||
# },
|
||||
# {
|
||||
# name: install SFML,
|
||||
# run: ./.github/workflows/scripts/mac/install-sfml.sh
|
||||
# },
|
||||
# {
|
||||
# name: patch Xcode project,
|
||||
# run: ./.github/workflows/scripts/mac/fix-xcode-proj.sh
|
||||
# },
|
||||
# {
|
||||
# name: build,
|
||||
# run: ./.github/workflows/scripts/mac/xcode-build.sh
|
||||
# },
|
||||
# {
|
||||
# name: unit tests,
|
||||
# run: ./.github/workflows/scripts/mac/run-tests.sh
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# macos-scons: {
|
||||
# runs-on: macos-13,
|
||||
# steps: [
|
||||
# {
|
||||
# name: checkout,
|
||||
# uses: actions/checkout@v4,
|
||||
# with: { submodules: true }
|
||||
# },
|
||||
# {
|
||||
# name: install dependencies,
|
||||
# run: brew install scons SFML@2 Boost@1.85
|
||||
# },
|
||||
# {
|
||||
# name: build and unit test,
|
||||
# run: ./.github/workflows/scripts/mac/scons-build.sh test=true
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# win-vs32: {
|
||||
# runs-on: windows-2022,
|
||||
# env: {
|
||||
# VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
# },
|
||||
# steps: [
|
||||
# {
|
||||
# name: Export GitHub Actions cache environment variables,
|
||||
# uses: actions/github-script@v7,
|
||||
# with: {
|
||||
# script: "core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');"
|
||||
# }
|
||||
# },
|
||||
# {
|
||||
# name: checkout,
|
||||
# uses: actions/checkout@v4,
|
||||
# with: { submodules: true }
|
||||
# },
|
||||
# {
|
||||
# name: install dependencies,
|
||||
# run: '${{ github.workspace }}\.github\workflows\scripts\win\install-deps.bat x86',
|
||||
# working-directory: proj/vs2017
|
||||
# },
|
||||
# {
|
||||
# name: build,
|
||||
# run: '.\.github\workflows\scripts\win\msvc-build.bat x86'
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# win-vs64: {
|
||||
# runs-on: windows-2022,
|
||||
# env: {
|
||||
# VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
# },
|
||||
# steps: [
|
||||
# {
|
||||
# name: Export GitHub Actions cache environment variables,
|
||||
# uses: actions/github-script@v7,
|
||||
# with: {
|
||||
# script: "core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');"
|
||||
# }
|
||||
# },
|
||||
# {
|
||||
# name: checkout,
|
||||
# uses: actions/checkout@v4,
|
||||
# with: { submodules: true }
|
||||
# },
|
||||
# {
|
||||
# name: install dependencies,
|
||||
# run: '${{ github.workspace }}\.github\workflows\scripts\win\install-deps.bat x64',
|
||||
# working-directory: proj/vs2017
|
||||
# },
|
||||
# {
|
||||
# name: build,
|
||||
# run: '.\.github\workflows\scripts\win\msvc-build.bat x64'
|
||||
# },
|
||||
# {
|
||||
# name: unit tests,
|
||||
# run: '.\.github\workflows\scripts\win\run-tests.bat'
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# win-scons: {
|
||||
# runs-on: windows-2019,
|
||||
# env: {
|
||||
# VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
||||
# },
|
||||
# steps: [
|
||||
# {
|
||||
# name: Export GitHub Actions cache environment variables,
|
||||
# uses: actions/github-script@v7,
|
||||
# with: {
|
||||
# script: "core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');"
|
||||
# }
|
||||
# },
|
||||
# {
|
||||
# name: checkout,
|
||||
# uses: actions/checkout@v4,
|
||||
# with: { submodules: true }
|
||||
# },
|
||||
# {
|
||||
# name: install build dependencies,
|
||||
# run: 'vcpkg install libxml2 && pip install scons'
|
||||
# },
|
||||
# {
|
||||
# name: install dependencies,
|
||||
# run: '${{ github.workspace }}\.github\workflows\scripts\win\install-deps.bat x64',
|
||||
# working-directory: proj/vs2017
|
||||
# },
|
||||
# {
|
||||
# name: build and unit test,
|
||||
# run: '.\.github\workflows\scripts\win\scons-build.bat test=true'
|
||||
# },
|
||||
# {
|
||||
# name: warn about failure to launch tests,
|
||||
# run: 'echo "::warning title=UNIT-TESTS::unit tests failed for win-scons"',
|
||||
# shell: bash,
|
||||
# if: "${{ hashFiles('build/test/passed') == '' }}"
|
||||
# }
|
||||
# ]
|
||||
# },
|
||||
# win-mingw: {
|
||||
# runs-on: windows-2019,
|
||||
# steps: [
|
||||
# {
|
||||
# name: checkout,
|
||||
|
Reference in New Issue
Block a user