Skip to content

Update build_snapshots.yml #2

Update build_snapshots.yml

Update build_snapshots.yml #2

name: Build Snapshots
on:
workflow_dispatch:
branches:
- master
push:
branches:
- master
- WIP-keyboard-stuff
pull_request:
branches:
- master
jobs:
build:
name: ${{ matrix.name }} ${{ matrix.cpu }}
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
include:
- image: ubuntu-latest
name: Unit Tests (on Linux)
cpu: x86_64
os: linux
flavour: unittest
- image: ubuntu-latest
name: Linux
cpu: x86_64
os: linux
flavour: opt
# - image: ubuntu-latest
# name: Linux
# cpu: aarch64
# os: linux
# flavour: opt
# - image: ubuntu-24.04 # disabled until this image becomes available, as we need mingw with gcc-11, not avaible on 22.04
# name: Windows
# cpu: x86_64
# os: mingw-w64
# flavour: opt
- image: macos-latest
name: MacOS
cpu: x86_64
os: darwin
flavour: opt
- image: macos-latest
name: MacOS
cpu: aarch64
os: darwin
flavour: opt
# - image: ubuntu-latest
# name: Android
# cpu: arm
# os: android
# flavour: opt
- image: windows-latest
name: Windows-VC
cpu: x64
os: windows-vc
flavour: opt
steps:
- name: Get current code from Git repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Preparations for signing binaries on Darwin builds
if: matrix.os == 'darwin'
uses: ./.github/actions/prepare-sign
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
with:
os: ${{ matrix.os }}
- name: Perform the actual build
env:
CODE_SIGN_IDENTITY: 748867M822
# Directory name only
uses: ./.github/actions/build
with:
os: ${{ matrix.os }}
cpu: ${{ matrix.cpu }}
flavour: ${{ matrix.flavour }}