gec: fixed bug in SCOOP when there are several separate arguments and… #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For available runners, see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
name: "GitHub Actions" | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/**' | |
tags-ignore: | |
- '*' | |
- '*/**' | |
pull_request: | |
env: | |
GOBO_CLI_SETTING: exception_trace=true | |
jobs: | |
# | |
# Build Gobo tools. | |
# | |
linux_build: | |
if: ${{ github.repository == 'ebezault/gobo' || github.repository == 'gobo-eiffel/gobo' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
c_compiler: [zig, gcc] | |
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: . "$env:GITHUB_WORKSPACE/.cicd/build_ge.ps1" github ${{ matrix.c_compiler }} | |
shell: pwsh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: gobo_bin_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: bin | |
retention-days: 1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: gobo_c_config_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: tool/gec/backend/c/config/default.cfg | |
retention-days: 1 | |
macos_build: | |
if: ${{ github.repository == 'ebezault/gobo' || github.repository == 'gobo-eiffel/gobo' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
c_compiler: [zig, clang] | |
os: [macos-15, macos-14, macos-13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: . "$env:GITHUB_WORKSPACE/.cicd/build_ge.ps1" github ${{ matrix.c_compiler }} | |
shell: pwsh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: gobo_bin_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: bin | |
retention-days: 1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: gobo_c_config_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: tool/gec/backend/c/config/default.cfg | |
retention-days: 1 | |
windows_build: | |
if: ${{ github.repository == 'ebezault/gobo' || github.repository == 'gobo-eiffel/gobo' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
c_compiler: [zig, msc] | |
os: [windows-2022, windows-2019] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
run: . "$env:GITHUB_WORKSPACE/.cicd/build_ge.ps1" github ${{ matrix.c_compiler }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: gobo_bin_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: bin | |
retention-days: 1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: gobo_c_config_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: tool/gec/backend/c/config/default.cfg | |
retention-days: 1 | |
# | |
# Run tests. | |
# | |
linux_test: | |
needs: linux_build | |
strategy: | |
fail-fast: false | |
matrix: | |
c_compiler: [zig, gcc] | |
eiffel_compiler: [ge, debug_ge, ise, debug_ise] | |
system_under_test: [library, tool] | |
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: gobo_bin_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: bin | |
- uses: actions/download-artifact@v4 | |
with: | |
name: gobo_c_config_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: tool/gec/backend/c/config | |
- name: test | |
run: . "$env:GITHUB_WORKSPACE/.cicd/test_ge.ps1" github ${{ matrix.c_compiler }} ${{ matrix.eiffel_compiler }} ${{ matrix.system_under_test }} | |
shell: pwsh | |
macos_test: | |
needs: macos_build | |
strategy: | |
fail-fast: false | |
matrix: | |
c_compiler: [zig, clang] | |
eiffel_compiler: [ge, debug_ge, ise, debug_ise] | |
system_under_test: [library, tool] | |
os: [macos-15, macos-14, macos-13] | |
exclude: | |
- os: macos-14 | |
eiffel_compiler: ise | |
- os: macos-14 | |
eiffel_compiler: debug_ise | |
- os: macos-15 | |
eiffel_compiler: ise | |
- os: macos-15 | |
eiffel_compiler: debug_ise | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: gobo_bin_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: bin | |
- uses: actions/download-artifact@v4 | |
with: | |
name: gobo_c_config_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: tool/gec/backend/c/config | |
- name: test | |
run: . "$env:GITHUB_WORKSPACE/.cicd/test_ge.ps1" github ${{ matrix.c_compiler }} ${{ matrix.eiffel_compiler }} ${{ matrix.system_under_test }} | |
shell: pwsh | |
windows_test: | |
needs: windows_build | |
strategy: | |
fail-fast: false | |
matrix: | |
c_compiler: [zig, msc] | |
eiffel_compiler: [ge, debug_ge, ise, debug_ise] | |
system_under_test: [library, tool] | |
os: [windows-2022, windows-2019] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: gobo_bin_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: bin | |
- uses: actions/download-artifact@v4 | |
with: | |
name: gobo_c_config_${{ matrix.os }}_${{ matrix.c_compiler }} | |
path: tool/gec/backend/c/config | |
- name: test | |
run: . "$env:GITHUB_WORKSPACE/.cicd/test_ge.ps1" github ${{ matrix.c_compiler }} ${{ matrix.eiffel_compiler }} ${{ matrix.system_under_test }} |