Skip to content

variable fixes

variable fixes #142

Workflow file for this run

name: Build and test
on:
workflow_dispatch:
push:
branches: ["main", "restructure-ci"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
# See https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ci:
name: ${{ matrix.config }} on ${{ matrix.os }}
strategy:
matrix:
os: []

Check failure on line 21 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Build and test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 21, Col: 13): Matrix vector 'os' does not contain any values .github/workflows/ci.yml (Line: 22, Col: 17): Matrix vector 'config' does not contain any values
config: []
build_flags: []
test_flags: []
include:
# Release builds
- os: ubuntu-22.04
config: "release"
working_directory: "."
build_flags: "OPTIMIZE=yes"
test_flags: ""
- os: macos-14
config: "release"
working_directory: "."
build_flags: "OPTIMIZE=yes"
test_flags: ""
- os: windows-2022
build_flags: "/p:Platform=x64 /p:Configuration=Release"
test_flags: "--platform=x64 --config=Release"
# Debug builds
- os: ubuntu-22.04
config: "debug"
working_directory: "."
build_flags: "OPTIMIZE=no"
test_flags: "--config=debug"
- os: macos-14
config: "debug"
working_directory: "."
build_flags: "OPTIMIZE=no"
test_flags: "--config=debug"
- os: windows-2022
build_flags: "/p:Platform=x64 /p:Configuration=Debug"
test_flags: "--platform=x64 --config=Debug"
# Xcode SDK builds
# TODO - Should we also test the debug config here as well?
- os: macos-14
config: "xcodesdk"
working_directory: "cpp"
make_flags: "CONFIGS=xcodesdk PLATFORMS=iphonesimulator"
test_flags: "--config=xcodesdk --platform=iphonesimulator --controller-app"
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Dependencies
uses: ./.github/actions/setup-dependencies
- name: Build ${{ matrix.config }} on ${{ matrix.os }}
uses: ./.github/actions/build
timeout-minutes: 90
with:
working_directory: ${{ matrix.working_directory || '.' }}
make_flags: ${{ matrix.make_flags }}
- name: Test ${{ matrix.config }} on ${{ matrix.os }}
uses: ./.github/actions/test
timeout-minutes: 90
with:
working_directory: ${{ matrix.working_directory || '.' }}
# See:
# - https://github.com/zeroc-ice/ice/issues/1653 IceGrid/replication
# - https://github.com/zeroc-ice/ice/issues/1945 matlab/Ice/slicing
flags: "--rfilter=IceGrid/replication --rfilter=matlab/Ice/slicing ${{ matrix.test_flags }}"