Skip to content

Round up the result of sbrk (used for the hint to the initial mmap fo… #407

Round up the result of sbrk (used for the hint to the initial mmap fo…

Round up the result of sbrk (used for the hint to the initial mmap fo… #407

Workflow file for this run

name: Build for Linux (x86)
on:
push: # All branches, but appropriate paths only.
paths:
# This workflow spec and its support scripts
- '.github/workflows/linux.yml'
- 'scripts/ci/*linux_x86.sh'
- 'scripts/ci/*build.sh'
- 'deploy/**'
# Relevant sources for this platform
- 'building/linux*x*/**' # Makefile-based build scripts
- 'building/linux32/**' # Makefile-based build scripts
- 'building/linux64/**' # Makefile-based build scripts
- '*src/**' # Generated VMMaker sources (incl. plugins)
- 'platforms/Cross/**'
- 'platforms/unix/**'
# Skip changes in documentation artifacts
- '!**.md'
- '!**HowToBuild'
pull_request:
branches:
- Cog
paths:
# This workflow spec and its support scripts
- '.github/workflows/linux.yml'
- 'scripts/ci/*linux_x86.sh'
- 'scripts/ci/*build.sh'
- 'deploy/**'
# Relevant sources for this platform
- 'building/linux*x*/**' # Makefile-based build scripts
- 'building/linux32/**' # Makefile-based build scripts
- 'building/linux64/**' # Makefile-based build scripts
- '*src/**' # Generated VMMaker sources (incl. plugins)
- 'platforms/Cross/**'
- 'platforms/unix/**'
# 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:
- linux64x64
- linux32x86
flavor: # for selected pharo.* builds, see extra.yml
- squeak.cog.spur
heartbeat:
- threaded
- itimer
mode:
- fast
- debug
- assert
include:
# sista build not fully prepared for linux64x64, so only choose selected configurations for linux32x86
- arch: linux32x86
flavor: squeak.sista.spur
heartbeat: threaded
mode: fast
# squeak.stack.spur builds are not prepared for itimer
- arch: linux64x64
flavor: squeak.stack.spur
heartbeat: threaded
mode: fast
- arch: linux32x86
flavor: squeak.stack.spur
heartbeat: threaded
mode: fast
runs-on: ubuntu-20.04
name: ${{ matrix.flavor }}${{ matrix.heartbeat == 'itimer' && ' (itimer)' || '' }} 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: Prepare environment
run: ./scripts/ci/actions_prepare_linux_x86.sh
- name: Build VM
run: ./scripts/ci/actions_build.sh
env:
HEARTBEAT: ${{ matrix.heartbeat }}
- name: Sign VM (not implemented)
if: false
run: ./deploy/sign-vm.sh
- name: Pack VM
run: ./deploy/pack-vm.sh
- name: Store artifact w/ revision
uses: actions/upload-artifact@v3
with:
name: ${{ env.ASSET_NAME }}_${{ env.ASSET_REVISION }}
path: ${{ env.PRODUCTS_PATH }}/${{ 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: ${{ env.PRODUCTS_PATH }}/${{ 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: ${{ env.PRODUCTS_PATH }}/${{ env.ASSET_NAME }}.${{ env.ASSET_EXTENSION }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.tag }}
body: ${{ github.event.head_commit.message }}