Skip to content

Commit 53d0f2e

Browse files
committed
Added OmniOS and OpenIndiana GHA jobs.
Also unified test running step for all VM-based jobs. For Solaris, added a __SunOS_5_11 define to let the library know we're targeting Solaris 11 and enable using readdir.
1 parent c47bb18 commit 53d0f2e

1 file changed

Lines changed: 61 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 61 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2025 Andrey Semashev
1+
# Copyright 2021-2026 Andrey Semashev
22
#
33
# Distributed under the Boost Software License, Version 1.0.
44
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
@@ -342,6 +342,26 @@ jobs:
342342
vm: solaris
343343
version: "11.4-gcc"
344344
cxxstd: "11,14,17,20,23,26"
345+
cxxflags: -D__SunOS_5_11
346+
os: ubuntu-latest
347+
348+
- toolset: gcc
349+
vm: omnios
350+
version: "r151056-build"
351+
cxxstd: "11,14,17,20,23,26"
352+
os: ubuntu-latest
353+
354+
- toolset: gcc
355+
vm: openindiana
356+
version: "202510-build"
357+
cxxstd: "11,14,17,20,23,26"
358+
build_variant: debug
359+
os: ubuntu-latest
360+
- toolset: gcc
361+
vm: openindiana
362+
version: "202510-build"
363+
cxxstd: "11,14,17,20,23,26"
364+
build_variant: release
345365
os: ubuntu-latest
346366

347367
- toolset: clang
@@ -604,6 +624,7 @@ jobs:
604624
uses: vmactions/freebsd-vm@v1
605625
with:
606626
release: "${{matrix.version}}"
627+
custom-shell-name: vmsh
607628
usesh: true
608629
sync: rsync
609630
copyback: false
@@ -625,6 +646,7 @@ jobs:
625646
uses: vmactions/openbsd-vm@v1
626647
with:
627648
release: "${{matrix.version}}"
649+
custom-shell-name: vmsh
628650
usesh: true
629651
sync: rsync
630652
copyback: false
@@ -646,6 +668,7 @@ jobs:
646668
uses: vmactions/netbsd-vm@v1
647669
with:
648670
release: "${{matrix.version}}"
671+
custom-shell-name: vmsh
649672
usesh: true
650673
sync: rsync
651674
copyback: false
@@ -665,6 +688,7 @@ jobs:
665688
uses: vmactions/dragonflybsd-vm@v1
666689
with:
667690
release: "${{matrix.version}}"
691+
custom-shell-name: vmsh
668692
usesh: true
669693
sync: rsync
670694
copyback: false
@@ -686,6 +710,7 @@ jobs:
686710
uses: vmactions/solaris-vm@v1
687711
with:
688712
release: "${{matrix.version}}"
713+
custom-shell-name: vmsh
689714
usesh: true
690715
sync: rsync
691716
copyback: false
@@ -696,42 +721,46 @@ jobs:
696721
pwd
697722
ls -la
698723
699-
- name: Run tests
700-
if: matrix.cmake_tests == '' && matrix.vm == ''
701-
run: |
702-
bash ./b2-run-tests.sh
703-
704-
- name: Run tests (FreeBSD VM)
705-
if: matrix.cmake_tests == '' && matrix.vm == 'freebsd'
706-
shell: freebsd {0}
707-
run: |
708-
cd "$GITHUB_WORKSPACE"
709-
bash ./b2-run-tests.sh
710-
711-
- name: Run tests (OpenBSD VM)
712-
if: matrix.cmake_tests == '' && matrix.vm == 'openbsd'
713-
shell: openbsd {0}
714-
run: |
715-
cd "$GITHUB_WORKSPACE"
716-
bash ./b2-run-tests.sh
724+
- name: Setup OmniOS VM
725+
if: matrix.vm == 'omnios'
726+
uses: vmactions/omnios-vm@v1
727+
with:
728+
release: "${{matrix.version}}"
729+
custom-shell-name: vmsh
730+
usesh: true
731+
sync: rsync
732+
copyback: false
733+
envs: "LANG LIBRARY DEFAULT_BUILD_VARIANT BUILD_JOBS GCC_TOOLCHAIN_ROOT"
734+
run: |
735+
uname -mrs
736+
locale
737+
pwd
738+
ls -la
717739
718-
- name: Run tests (NetBSD VM)
719-
if: matrix.cmake_tests == '' && matrix.vm == 'netbsd'
720-
shell: netbsd {0}
721-
run: |
722-
cd "$GITHUB_WORKSPACE"
723-
bash ./b2-run-tests.sh
740+
- name: Setup OpenIndiana VM
741+
if: matrix.vm == 'openindiana'
742+
uses: vmactions/openindiana-vm@v1
743+
with:
744+
release: "${{matrix.version}}"
745+
custom-shell-name: vmsh
746+
usesh: true
747+
sync: rsync
748+
copyback: false
749+
envs: "LANG LIBRARY DEFAULT_BUILD_VARIANT BUILD_JOBS GCC_TOOLCHAIN_ROOT"
750+
run: |
751+
uname -mrs
752+
locale
753+
pwd
754+
ls -la
724755
725-
- name: Run tests (DragonFlyBSD VM)
726-
if: matrix.cmake_tests == '' && matrix.vm == 'dragonflybsd'
727-
shell: dragonflybsd {0}
756+
- name: Run tests
757+
if: matrix.cmake_tests == '' && matrix.vm == ''
728758
run: |
729-
cd "$GITHUB_WORKSPACE"
730759
bash ./b2-run-tests.sh
731760
732-
- name: Run tests (Solaris VM)
733-
if: matrix.cmake_tests == '' && matrix.vm == 'solaris'
734-
shell: solaris {0}
761+
- name: Run tests (VM)
762+
if: matrix.cmake_tests == '' && matrix.vm != ''
763+
shell: vmsh {0}
735764
run: |
736765
cd "$GITHUB_WORKSPACE"
737766
bash ./b2-run-tests.sh

0 commit comments

Comments
 (0)