-
brown authored
No data and logs are uploaded when a job runs successfully, and vice versa, improving the efficiency of ci job execution. Approved by: @sukki37
Unverified992765a7
ci.yml 8.65 KiB
# Define workflow name.
name: MatrixOne CI
on:
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.event.pull_request.head.repo.full_name}}/${{ github.event.pull_request.head.ref }}/${{ github.workflow }}
cancel-in-progress: true
jobs:
ut-linux-x86:
runs-on: ubuntu-latest
name: UT Test on Ubuntu/x64
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '3'
- name: Set up Go
uses: ./.github/actions/setup_env
- name: Unit Testing
run: |
cd $GITHUB_WORKSPACE && make clean && make config
make ut
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
continue-on-error: true
with:
name: ut_linux_x86_reports
path: |
${{ github.workspace }}
retention-days: 7
ut-mac-x86:
runs-on: macos-12
name: UT Test on Darwin/x86
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '3'
- name: Set up Go
uses: ./.github/actions/setup_env
- name: Unit Testing
run: |
cd $GITHUB_WORKSPACE && make clean && make config
make ut
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
continue-on-error: true
with:
name: ut_darwin_x86_reports
path: |
${{ github.workspace }}
retention-days: 7
ut-linux-arm:
runs-on: arm64-runner