Skip to content

Harden Foundations memory and concurrency contracts #583

Harden Foundations memory and concurrency contracts

Harden Foundations memory and concurrency contracts #583

Workflow file for this run

name: Build CI
on:
pull_request:
jobs:
validate_release:
runs-on: ubuntu-latest
name: validate-release
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Resolve next release version
id: version
shell: pwsh
run: ./.github/scripts/resolve-version.ps1
- name: Generate release notes preview
if: steps.version.outputs.prerelease == 'true'
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: |
& ./.github/scripts/release-notes.ps1 `
-Version "${{ steps.version.outputs.version }}" `
-Repository "${{ github.repository }}" `
-OutputPath (Join-Path $env:RUNNER_TEMP "release-notes.md")
build:
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(vars.Platforms) }}
uses: ./.github/workflows/build.yml
name: build
secrets: inherit
with:
platform: ${{ matrix.platform }}
architecture: ${{ matrix.architecture }}
run_tests:
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(vars.Platforms) }}
uses: ./.github/workflows/run-tests.yml
needs: [build]
name: run-tests
secrets: inherit
with:
platform: ${{ matrix.platform }}
architecture: ${{ matrix.architecture }}
ci-build-check:
if: always()
runs-on: ubuntu-latest
name: CI Build Check
needs: [validate_release, build, run_tests]
steps:
- name: Check build, test and release validation results
if: >-
${{
needs.validate_release.result != 'success'
|| needs.build.result != 'success'
|| needs.run_tests.result != 'success'
}}
run: exit 1