clean up release.yml + download dependencies release
This commit is contained in:
83
.github/workflows/release.yml
vendored
83
.github/workflows/release.yml
vendored
@@ -1,17 +1,15 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- builds
|
||||
- builds2
|
||||
- 'itch-edition'
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
pull_request:
|
||||
branches:
|
||||
- builds
|
||||
- itch-edition
|
||||
jobs:
|
||||
release:
|
||||
env:
|
||||
BREW_PREFIX: ${{ matrix.os.name == 'macos' && matrix.os.version == '14' && 'arch -arm64' || ''}}
|
||||
MACOSX_DEPLOYMENT_TARGET: 10.15
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
PROD_MACOS_CERTIFICATE: '${{ secrets.PROD_MACOS_CERTIFICATE }}'
|
||||
@@ -29,29 +27,14 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- name: macos
|
||||
suffix: '-intel'
|
||||
version: 12
|
||||
scons-script: './.github/workflows/scripts/mac/scons-build.sh'
|
||||
path-separator: ':'
|
||||
- name: macos
|
||||
suffix: '-silicon'
|
||||
version: 14
|
||||
scons-script: './.github/workflows/scripts/mac/scons-build.sh'
|
||||
path-separator: ':'
|
||||
- name: ubuntu
|
||||
suffix: ''
|
||||
version: 22.04
|
||||
scons-script: scons
|
||||
path-separator: ':'
|
||||
- name: windows
|
||||
suffix: ''
|
||||
version: 2019
|
||||
scons-script: './.github/workflows/scripts/win/scons-build.bat'
|
||||
path-separator: ';'
|
||||
boost-version:
|
||||
- 1.85.0
|
||||
sfml-version:
|
||||
- 2.6.1
|
||||
configuration:
|
||||
- Release
|
||||
- Debug
|
||||
@@ -66,50 +49,14 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: CMake zlib for linux
|
||||
run: cmake -S . -B build
|
||||
working-directory: deps/zlib
|
||||
if: ${{ matrix.os.name == 'ubuntu' }}
|
||||
- name: CMake zlib for windows
|
||||
run: cmake -S . -B build -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
|
||||
working-directory: deps/zlib
|
||||
if: ${{ matrix.os.name == 'windows' }}
|
||||
- name: Build zlib for linux
|
||||
run: make && sudo make install
|
||||
working-directory: deps/zlib/build
|
||||
if: ${{ matrix.os.name == 'ubuntu' }}
|
||||
- name: Build zlib for windows
|
||||
run: './.github/workflows/scripts/win/zlib-build.bat x64'
|
||||
if: ${{ matrix.os.name == 'windows' }}
|
||||
|
||||
|
||||
- name: Build Boost (fork)
|
||||
id: boost-fork
|
||||
uses: NQNStudios/build-boost@v1
|
||||
- name: Download dependency build
|
||||
- uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
version: ${{ matrix.boost-version }}
|
||||
libraries: filesystem system
|
||||
platform: x64
|
||||
configuration: ${{ matrix.configuration }}
|
||||
static: ${{ matrix.os.name == 'windows' }}
|
||||
if: ${{ matrix.os.name == 'macos' }}
|
||||
- name: Build Boost
|
||||
id: boost
|
||||
uses: egor-tensin/build-boost@v1
|
||||
with:
|
||||
version: ${{ matrix.boost-version }}
|
||||
libraries: filesystem system
|
||||
platform: x64
|
||||
configuration: ${{ matrix.configuration }}
|
||||
static: ${{ matrix.os.name == 'windows' }}
|
||||
if: ${{ matrix.os.name != 'macos' }}
|
||||
|
||||
- name: Build SFML
|
||||
id: sfml
|
||||
uses: NQNStudios/install-sfml@v1
|
||||
with:
|
||||
sfml: ${{ matrix.sfml-version }}
|
||||
config: ${{ matrix.configuration }}
|
||||
repository: NQNStudios/cboe-dependencies
|
||||
latest: true
|
||||
fileName: 'dependencies-macos-universal-${{ matrix.configuration }}.tar'
|
||||
extract: true
|
||||
out-file-path: 'deps'
|
||||
- name: Windows build dependencies
|
||||
run: 'vcpkg install libxml2 && pip install scons'
|
||||
if: ${{ matrix.os.name == 'windows' }}
|
||||
@@ -117,29 +64,29 @@ jobs:
|
||||
run: brew install scons
|
||||
if: ${{ matrix.os.name == 'macos' }}
|
||||
- name: Linux build dependencies
|
||||
run: sudo apt-get update && sudo apt-get install scons libxml2-utils zenity
|
||||
run: sudo apt-get update && sudo apt-get install scons libxml2-utils
|
||||
if: ${{ matrix.os.name == 'ubuntu' }}
|
||||
- name: Install TGUI
|
||||
run: 'sudo ./.github/workflows/scripts/linux/install-tgui.sh'
|
||||
if: ${{ matrix.os.name == 'ubuntu' }}
|
||||
- name: Build
|
||||
run: '${{ matrix.os.scons-script }} INCLUDEPATH="${{ steps.boost.outputs.root }}${{ steps.boost-fork.outputs.root }}${{ matrix.os.path-separator }}${{steps.sfml.outputs.path}}/include" LIBPATH="${{ steps.boost.outputs.librarydir }}${{ steps.boost-fork.outputs.librarydir }}${{ matrix.os.path-separator }}${{steps.sfml.outputs.path}}/lib${{ matrix.os.path-separator }}/usr/local/lib" FRAMEWORKPATH="${{steps.sfml.outputs.path}}/lib" test=false debug=$DEBUG_FLAG'
|
||||
run: '${{ matrix.os.scons-script }} test=false debug=$DEBUG_FLAG'
|
||||
shell: bash
|
||||
- name: Codesign and notarize
|
||||
run: './.github/workflows/scripts/mac/sign-apps.sh'
|
||||
if: ${{ matrix.os.name == 'macos' }}
|
||||
- name: 'Tar files'
|
||||
run: 'tar -cvf cboe-${{ matrix.os.name }}${{matrix.os.suffix}}-${{ matrix.configuration }}.tar "Blades of Exile"'
|
||||
run: 'tar -cvf cboe-${{ matrix.os.name }}-${{ matrix.configuration }}.tar "Blades of Exile"'
|
||||
working-directory: '${{ github.workspace }}/build'
|
||||
- name: 'Upload Artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: cboe-${{ matrix.os.name }}${{matrix.os.suffix}}-${{ matrix.configuration }}
|
||||
path: '${{ github.workspace }}/build/cboe-${{ matrix.os.name }}${{matrix.os.suffix}}-${{ matrix.configuration }}.tar'
|
||||
name: cboe-${{ matrix.os.name }}-${{ matrix.configuration }}
|
||||
path: '${{ github.workspace }}/build/cboe-${{ matrix.os.name }}-${{ matrix.configuration }}.tar'
|
||||
- name: Github release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: '${{ github.workspace }}/build/cboe-${{ matrix.os.name }}${{matrix.os.suffix}}-${{ matrix.configuration }}.tar'
|
||||
files: '${{ github.workspace }}/build/cboe-${{ matrix.os.name }}-${{ matrix.configuration }}.tar'
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
- name: 'Itch.io release'
|
||||
run: './.github/workflows/scripts/butler_push.sh'
|
||||
|
Reference in New Issue
Block a user