[leap 5.0 -> spring 1.0] improve exception handling #33
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: Pull Request | |
on: [pull_request] | |
env: | |
PR_NUMBER: ${{ toJson(github.event.number) }} | |
jobs: | |
amazon_linux-2-build: | |
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | |
name: Amazon_Linux 2 | Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Build | |
run: | | |
./.cicd/build.sh | |
tar -pczf build.tar.gz build | |
env: | |
IMAGE_TAG: amazonlinux-2 | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: amazon_linux-2-build | |
path: build.tar.gz | |
amazon_linux-2-unit-test: | |
name: Amazon_Linux 2 | Unit Test | |
runs-on: ubuntu-latest | |
needs: amazon_linux-2-build | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Download Build Artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: amazon_linux-2-build | |
- name: Unit Test | |
run: | | |
tar -xzf amazon_linux-2-build/build.tar.gz | |
./.cicd/test.sh | |
env: | |
IMAGE_TAG: amazonlinux-2 | |
centos-77-build: | |
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | |
name: CentOS 7.7 | Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Build | |
run: | | |
./.cicd/build.sh | |
tar -pczf build.tar.gz build | |
env: | |
IMAGE_TAG: centos-7.7 | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: centos-77-build | |
path: build.tar.gz | |
centos-77-unit-test: | |
name: CentOS 7.7 | Unit Test | |
runs-on: ubuntu-latest | |
needs: centos-77-build | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Download Build Artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: centos-77-build | |
- name: Unit Test | |
run: | | |
tar -xzf centos-77-build/build.tar.gz | |
./.cicd/test.sh | |
env: | |
IMAGE_TAG: centos-7.7 | |
ubuntu-1604-build: | |
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | |
name: Ubuntu 16.04 | Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Build | |
run: | | |
./.cicd/build.sh | |
tar -pczf build.tar.gz build | |
env: | |
IMAGE_TAG: ubuntu-16.04 | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ubuntu-1604-build | |
path: build.tar.gz | |
ubuntu-1604-unit-test: | |
name: Ubuntu 16.04 | Unit Test | |
runs-on: ubuntu-latest | |
needs: ubuntu-1604-build | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Download Build Artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: ubuntu-1604-build | |
- name: Unit Test | |
run: | | |
tar -xzf ubuntu-1604-build/build.tar.gz | |
./.cicd/test.sh | |
env: | |
IMAGE_TAG: ubuntu-16.04 | |
ubuntu-1804-build: | |
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | |
name: Ubuntu 18.04 | Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Build | |
run: | | |
./.cicd/build.sh | |
tar -pczf build.tar.gz build | |
env: | |
IMAGE_TAG: ubuntu-18.04 | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ubuntu-1804-build | |
path: build.tar.gz | |
ubuntu-1804-unit-test: | |
name: Ubuntu 18.04 | Unit Test | |
runs-on: ubuntu-latest | |
needs: ubuntu-1804-build | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Download Build Artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: ubuntu-1804-build | |
- name: Unit Test | |
run: | | |
tar -xzf ubuntu-1804-build/build.tar.gz | |
./.cicd/test.sh | |
env: | |
IMAGE_TAG: ubuntu-18.04 | |
macos-1015-build: | |
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | |
name: MacOS 10.15 | Build | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Build | |
run: | | |
brew install git cmake | |
./.cicd/build.sh | |
tar -pczf build.tar.gz build | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: macos-1015-build | |
path: build.tar.gz | |
macos-1015-unit-test: | |
name: MacOS 10.15 | Unit Test | |
runs-on: macos-latest | |
needs: macos-1015-build | |
steps: | |
- name: Checkout | |
run: | | |
git clone https://github.com/${GITHUB_REPOSITORY} . | |
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge | |
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge | |
git submodule sync --recursive | |
git submodule update --init --force --recursive | |
- name: Download Build Artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: macos-1015-build | |
- name: Unit Test | |
run: | | |
brew install git cmake | |
tar -xzf macos-1015-build/build.tar.gz | |
./.cicd/test.sh |