ci: Archive builds on branches

This commit is contained in:
Luke Street 2022-06-13 01:46:28 -04:00
parent 2380361d16
commit c9e3065d12
1 changed files with 44 additions and 1 deletions

View File

@ -85,6 +85,17 @@ jobs:
- name: Print buildcache stats - name: Print buildcache stats
run: buildcache -s run: buildcache -s
- name: Generate AppImage
run: ci/build-appimage.sh
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: metaforce-${{env.METAFORCE_VERSION}}-linux-${{matrix.preset}}-x86_64
path: |
build/install/Metaforce-*.AppImage
build/install/debug.tar.*
build-macos: build-macos:
name: Build macOS (AppleClang universal) name: Build macOS (AppleClang universal)
runs-on: macos-11 runs-on: macos-11
@ -103,7 +114,8 @@ jobs:
run: | run: |
brew update brew update
brew upgrade --formula brew upgrade --formula
brew install ninja brew install ninja graphicsmagick imagemagick
yarn global add create-dmg
pip3 install markupsafe pip3 install markupsafe
# setup buildcache # setup buildcache
@ -139,6 +151,29 @@ jobs:
if: 'false' # temporarily disabled if: 'false' # temporarily disabled
run: buildcache -s run: buildcache -s
- name: Import signing certificate
uses: devbotsxyz/xcode-import-certificate@master
with:
certificate-data: ${{secrets.MACOS_CERTIFICATE_DATA}}
certificate-passphrase: ${{secrets.MACOS_CERTIFICATE_PASSWORD}}
keychain-password: ${{secrets.MACOS_KEYCHAIN_PASSWORD}}
- name: Deploy & codesign application
env:
ASC_USERNAME: ${{secrets.MACOS_ASC_USERNAME}}
ASC_PASSWORD: ${{secrets.MACOS_ASC_PASSWORD}}
ASC_TEAM_ID: ${{secrets.MACOS_ASC_TEAM_ID}}
CODESIGN_IDENT: ${{secrets.MACOS_CODESIGN_IDENT}}
run: ci/build-dmg.sh
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: metaforce-${{env.METAFORCE_VERSION}}-macos-appleclang-universal
path: |
build/install/Metaforce *.dmg
build/install/debug.tar.*
build-ios: build-ios:
name: Build iOS name: Build iOS
runs-on: macos-11 runs-on: macos-11
@ -263,3 +298,11 @@ jobs:
- name: Print buildcache stats - name: Print buildcache stats
run: buildcache -s run: buildcache -s
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: metaforce-${{env.METAFORCE_VERSION}}-win32-clang-x86_64
path: |
${{env.BUILD_DIR}}/install/*.exe
${{env.BUILD_DIR}}/install/debug.7z