Auto-format code using Clang-Format (#241) #627
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: FetchContentIntegration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
docker-build-and-test: | |
name: Build and Test - ${{ matrix.dockerfile }} | |
runs-on: ubuntu-latest | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
dockerfile: | |
- Dockerfile.fortran-intel | |
- Dockerfile.fortran-gcc.integration | |
- Dockerfile.fortran-nvhpc | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Print branch name | |
run: echo "Branch name is $BRANCH_NAME" | |
- name: Delete huge unnecessary tools folder | |
run: rm -rf /opt/hostedtoolcache | |
- name: Build Docker image | |
run: docker build -t musica --build-arg MUSICA_GIT_TAG=${BRANCH_NAME} -f docker/${{ matrix.dockerfile }} . | |
- name: Run tests in container | |
run: docker run --name test-container -t musica bash -c 'make test ARGS="--rerun-failed --output-on-failure -j8"' |