diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000000..ad5e467ad1 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,98 @@ +name: Standard Build and Test + +on: + # allows us to run workflows manually + workflow_dispatch: + pull_request: + branches: + - develop + - master + push: + branches: + - develop + - master + +jobs: + Housekeeping: + runs-on: ubuntu-latest + container: + image: ghcr.io/svalinn/dagmc-ci-ubuntu-18.04-housekeeping:stable + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup environment + run: | + echo "REPO_SLUG=${GITHUB_REPOSITORY}" >> $GITHUB_ENV + echo "PULL_REQUEST=$(echo $GITHUB_REF | cut -d"/" -f3)" >> $GITHUB_ENV + mkdir /root/build_dir + ln -s $GITHUB_WORKSPACE /root/build_dir/DAGMC + + - name: Housekeeping + run: | + cd $GITHUB_WORKSPACE + CI/scripts/housekeeping.sh + + + BuildTest: + needs: Housekeeping + runs-on: ubuntu-latest + + env: + hdf5_versions: ${{ matrix.hdf5_versions }} + hdf5_build_dir: hdf5_build_dir + + strategy: + matrix: + ubuntu_versions : [ + 18.04, + 20.04, + ] + compiler : [ + gcc, + clang, + ] + hdf5_versions : [ + 1.10.4, + ] + moab_versions : [ + 9c96d17, + develop, + master, + ] + isPR: + - ${{ contains(github.event_name, 'pull_request') }} + exclude: + - isPR: true + moab_versions: develop + - isPR: true + moab_versions: master + + container: + image: ghcr.io/svalinn/dagmc-ci-ubuntu-${{ matrix.ubuntu_versions }}-${{ matrix.compiler }}-ext-hdf5_${{ matrix.hdf5_versions }}-moab_${{ matrix.moab_versions }}:stable + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Setup + run: | + echo "MOAB_VERSION=${{ matrix.moab_versions }}" >> $GITHUB_ENV + echo "COMPILER=${{ matrix.compiler }}" >> $GITHUB_ENV + echo "HDF5_VERSION=${{ matrix.hdf5_versions }}" >> $GITHUB_ENV + echo "REPO_SLUG=${GITHUB_REPOSITORY}" >> $GITHUB_ENV + echo "PULL_REQUEST=$(echo $GITHUB_REF | cut -d"/" -f3)" >> $GITHUB_ENV + echo "DOUBLE_DOWN="OFF"" >> $GITHUB_ENV + ln -s $GITHUB_WORKSPACE /root/build_dir/DAGMC + + - name: Building DAGMC + run: | + cd $GITHUB_WORKSPACE + CI/scripts/install.sh + + - name: Testing DAGMC + run: | + cd $GITHUB_WORKSPACE + CI/scripts/tests.sh diff --git a/.circleci/config.yml b/.old_circle/config.yml similarity index 100% rename from .circleci/config.yml rename to .old_circle/config.yml diff --git a/news/PR-0752.rst b/news/PR-0752.rst new file mode 100644 index 0000000000..57411be612 --- /dev/null +++ b/news/PR-0752.rst @@ -0,0 +1,12 @@ +**Added:** None + +**Changed:** +- Moving CI from CircleCI to GithubAction + +**Deprecated:** None + +**Removed:** None + +**Fixed:** None + +**Security:** None