Skip to content

CogVM source as per VMMaker.oscog-eem.3478 #416

CogVM source as per VMMaker.oscog-eem.3478

CogVM source as per VMMaker.oscog-eem.3478 #416

Workflow file for this run

name: Build for macOS
on:
push: # All branches, but appropriate paths only.
paths:
# This workflow spec and its support scripts
- '.github/workflows/macos-arm.yml'
- 'scripts/ci/*build.sh'
- 'deploy/**'
# Relevant sources for this platform
- 'building/macos*x*/**' # Makefile-based build scripts
- '*src/**' # Generated VMMaker sources (incl. plugins)
- 'platforms/Cross/**'
- 'platforms/iOS/**' # Note that 'platforms/Mac OS' is deprecated
# Skip changes in documentation artifacts
- '!**.md'
- '!**HowToBuild'
pull_request:
branches:
- Cog
paths:
# This workflow spec and its support scripts
- '.github/workflows/macos-arm.yml'
- 'scripts/ci/*build.sh'
- 'deploy/**'
# Relevant sources for this platform
- 'building/macos*x*/**' # Makefile-based build scripts
- '*src/**' # Generated VMMaker sources (incl. plugins)
- 'platforms/Cross/**'
- 'platforms/iOS/**' # Note that 'platforms/Mac OS' is deprecated
# Skip changes in documentation artifacts
- '!**.md'
- '!**HowToBuild'
workflow_dispatch:
inputs:
tag:
description: "Build new release candidate for tag"
required: true
default: YYYYMMDDHHMM
jobs:
build:
strategy:
fail-fast: false
matrix:
arch:
- macos64x64
# - macos32x86 # Might be deprecated in general
flavor: # for selected pharo.* builds, see extra.yml
- squeak.cog.spur
# - squeak.sista.spur # -Werror bc. decl. missing
- squeak.stack.spur
mode:
- fast
- debug
- assert
runs-on: macos-14 # macos-latest
name: ${{ matrix.flavor }} for ${{ matrix.arch }}${{ matrix.mode == 'debug' && ' (DEBUG)' || matrix.mode == 'assert' && ' (ASSERT)' || '' }}
env:
ARCH: ${{ matrix.arch }}
FLAVOR: ${{ matrix.flavor }}
MODE: ${{ matrix.mode }}
steps:
- name: Checkout files
if: github.event_name != 'workflow_dispatch'
uses: actions/checkout@v3
- name: Checkout files for new release candidate
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v3
with:
ref: refs/tags/${{ github.event.inputs.tag }}
- name: Restore build cache
uses: actions/cache@v3
with:
path: .thirdparty-cache
key: thirdparty-cache-${{ matrix.arch }}-${{ matrix.flavor }}
- name: Build VM
run: ./scripts/ci/actions_build.sh
- name: Sign VM (skip for now)
if: false
continue-on-error: true # Save unsigned build artifacts
run: ./deploy/sign-vm.sh
env:
SQUEAK_SIGN_PASSWORD: ${{ secrets.SQUEAK_SIGN_PASSWORD }}
SQUEAK_CERT_PASSWORD: ${{ secrets.SQUEAK_CERT_PASSWORD }}
SQUEAK_SIGN_IDENTITY: ${{ secrets.SQUEAK_SIGN_IDENTITY }}
PHARO_SIGN_PASSWORD: ${{ secrets.PHARO_SIGN_PASSWORD }}
PHARO_CERT_PASSWORD: ${{ secrets.PHARO_CERT_PASSWORD }}
PHARO_SIGN_IDENTITY: ${{ secrets.PHARO_SIGN_IDENTITY }}
NEWSPEAK_SIGN_PASSWORD: ${{ secrets.NEWSPEAK_SIGN_PASSWORD }}
NEWSPEAK_CERT_PASSWORD: ${{ secrets.NEWSPEAK_CERT_PASSWORD }}
NEWSPEAK_SIGN_IDENTITY: ${{ secrets.NEWSPEAK_SIGN_IDENTITY }}
- name: Pack VM
run: ./deploy/pack-vm.sh
- name: Store artifact w/ revision
uses: actions/upload-artifact@v4
with:
name: ${{ env.ASSET_NAME }}_${{ env.ASSET_REVISION }}
path: products/${{ env.ASSET_NAME }}.${{ env.ASSET_EXTENSION }}
- name: Update artifact in latest-build
uses: ncipollo/release-action@v1
if: github.event_name == 'push' && endsWith( github.ref , 'Cog' )
with:
prerelease: true
allowUpdates: true
replacesArtifacts: true
artifacts: products/${{ env.ASSET_NAME }}.${{ env.ASSET_EXTENSION }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ matrix.mode == 'debug' && 'latest-debug-build' || matrix.mode == 'assert' && 'latest-assert-build' || 'latest-build' }}
body: ${{ github.event.head_commit.message }}
- name: Deploy artifact as new release candidate
uses: ncipollo/release-action@v1
if: github.event_name == 'workflow_dispatch'
with:
prerelease: true # release candidate
allowUpdates: true
replacesArtifacts: true
artifacts: products/${{ env.ASSET_NAME }}.${{ env.ASSET_EXTENSION }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.tag }}
body: ${{ github.event.head_commit.message }}