feat: grow/shrink support for fluxion #77
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
name: test fluxion-go | |
# This will be expanded for more robust testing | |
# right now we build and run the main test command | |
# and test the package "types" directory | |
on: | |
pull_request: [] | |
workflow_dispatch: | |
# Bindings shoul be checked against the latest containers | |
# 2:10 every Thursday | |
schedule: | |
- cron: '10 2 * * 4' | |
jobs: | |
test: | |
name: Test fluxion-go | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# container base and lib prefix | |
test: [["fluxrm/flux-sched:noble", "/usr/lib"], | |
["fluxrm/flux-sched:fedora38", "/usr/lib64"], | |
["fluxrm/flux-sched:bookworm-amd64", "/usr/lib"]] | |
container: | |
image: ${{ matrix.test[0] }} | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
# TODO: we should consider distributing the header files with the release builds | |
- name: flux-sched build | |
run: git clone -b grow-api https://github.com/milroy/flux-sched /opt/flux-sched | |
- name: flux-sched compile | |
run: | | |
export FLUX_SCHED_VERSION=0.39.0 | |
cd /opt/flux-sched | |
cmake -B build | |
make -C build | |
make -C build install | |
cd - | |
- name: Build | |
run: LIB_PREFIX=${{ matrix.test[1] }} make build | |
- name: Test Binary | |
run: LIB_PREFIX=${{ matrix.test[1] }} make test-binary | |
- name: Test Modules | |
run: make test-modules |