Skip to content

Extra Monthly Builds #87

Extra Monthly Builds

Extra Monthly Builds #87

Workflow file for this run

name: Extra Monthly Builds
on:
schedule:
- cron: '0 0 1 * *' # Build on the 1st of every month at midnight
workflow_dispatch:
inputs:
should-deploy:
description: 'Deploy on success'
required: true
default: "true" # No boolean support at the moment
jobs:
build:
strategy:
fail-fast: false # let them finish bc. different platforms
matrix:
include:
- arch: { name: win32x86, os: windows-2025 }
flavor: squeak.cog.v3
- arch: { name: win32x86, os: windows-2025 }
flavor: squeak.stack.v3
- arch: { name: win32x86, os: windows-2025 }
flavor: squeak.cog.spur.lowcode
- arch: { name: linux32x86, os: ubuntu-22.04 }
flavor: squeak.cog.v3
- arch: { name: linux32x86, os: ubuntu-22.04 }
flavor: squeak.stack.v3
runs-on: ${{ matrix.arch.os }}
name: ${{ matrix.flavor }} for ${{ matrix.arch.name }}
env:
ARCH: ${{ matrix.arch.name }}
FLAVOR: ${{ matrix.flavor }}
MODE: fast # no assert or debug here
HEARTBEAT: threaded # linux only; no itimer here
steps:
- name: Checkout files
uses: actions/checkout@v4
# with:
# ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || 'refs/heads/Cog'}}
# - name: Restore build cache
# uses: actions/cache@v3
# with:
# path: .thirdparty-cache
# key: ${{ startsWith(matrix.arch.name, 'win') && 'thirdparty-cache-win' || startsWith(matrix.arch.name, 'linux') && 'thirdparty-cache-linux' || 'thirdparty-cache-macos' }}
- name: Prepare Linux build environment
if: startsWith(matrix.arch.name, 'linux')
run: sudo --preserve-env=ARCH,FLAVOR,MODE,HEARTBEAT ./scripts/ci/actions_prepare_linux_x86.sh
- name: Prepare MSYS2/Windows build environment
if: startsWith(matrix.arch.name, 'win')
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
release: false # use existing MSYS2 installation
update: false # faster builds
cache: true
install: git base make
- name: Build VM (Linux)
if: startsWith(matrix.arch.name, 'linux')
shell: bash
run: ./scripts/ci/actions_build.sh
- name: Build VM (Windows)
if: startsWith(matrix.arch.name, 'win')
shell: msys2 {0} #bash
run: ./scripts/ci/actions_build.sh
- name: Sign VM (not implemented)
if: false
run: ./deploy/sign-vm.sh
- name: Pack VM
shell: bash
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 == 'schedule' || (github.event.inputs.should-deploy == 'true' && 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 }}