trying to use containers #4
Workflow file for this run
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: build from source on many | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '44 4 * * 0' | |
push: | |
branches: [ main, develop, 'release*' ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
run-build-stack: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { os: Debian11, container: "debian:11", CC: gcc-10, CXX: g++-10, python: '3.9' } | |
# - { os: ubuntu-22.04, CC: gcc, CXX: g++, python: '3.9' } | |
# - { os: ubuntu-22.04, CC: gcc, CXX: g++, python: '3.10' } | |
# - { os: ubuntu-22.04, CC: clang, CXX: clang++, python: '3.11' } | |
- { os: Debian12, container: "debian:12", CC: gcc-12, CXX: g++-12, python: '3.11' } | |
# - { os: macos-11, CC: clang, CXX: clang++, python: "3.10" } | |
# - { os: macos-12, CC: clang, CXX: clang++, python: "3.11" } | |
# - { os: macos-13, CC: clang, CXX: clang++, python: "3.11" } | |
runs-on: ubuntu-22.04 | |
container: ${{ matrix.container }} | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
steps: | |
- name: bootstrap debians | |
run: | | |
echo ${{ matrix.os }} | |
sudo apt-get -y update | |
sudo apt-get dist-upgrade | |
sudo apt-get install git build-essentials | |
if: ${{ matrix.os == 'Debian11' || matrix.os == 'Debian12' }} | |
- name: checkout_main_repo | |
uses: actions/checkout@v3 | |
with: | |
repository: 'openmsr/openmc_install_scripts' | |
ref: '${{github.sha}}' | |
path: openmc_install_scripts | |
submodules: true | |
- name: moab-install | |
run: | | |
cd openmc_install_scripts/${{ matrix.os }} | |
sudo ./moab-install.sh | |
- name: double_down-install | |
run: | | |
cd openmc_install_scripts/${{ matrix.os }} | |
sudo ./double_down-install.sh | |
- name: dagmc-install | |
run: | | |
cd openmc_install_scripts/${{ matrix.os }} | |
sudo ./dagmc-install.sh | |
- name: openmc-install | |
run: | | |
cd openmc_install_scripts/${{ matrix.os }} | |
sudo ./openmc-install.sh | |
- name: check if openmc is runnable | |
run: | | |
/usr/local/lib/bin/openmc -v |