Do not write a report for "build" operations. #15
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: CI Build | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
platform: | |
- # Ubuntu 18.04 x86 | |
distribution-id: ubuntu | |
distribution-version: "18.04" | |
cpu-architecture: x86 | |
- # Ubuntu 18.04 x86_64 | |
distribution-id: ubuntu | |
distribution-version: "18.04" | |
cpu-architecture: x86_64 | |
- # Ubuntu 18.04 arm64 | |
distribution-id: ubuntu | |
distribution-version: "18.04" | |
cpu-architecture: arm64 | |
- # Ubuntu 20.04 x86_64 | |
distribution-id: ubuntu | |
distribution-version: "20.04" | |
cpu-architecture: x86_64 | |
- # Ubuntu 20.04 arm64 | |
distribution-id: ubuntu | |
distribution-version: "20.04" | |
cpu-architecture: arm64 | |
- # Ubuntu 22.04 x86_64 | |
distribution-id: ubuntu | |
distribution-version: "22.04" | |
cpu-architecture: x86_64 | |
- # Ubuntu 22.04 armhf | |
distribution-id: ubuntu | |
distribution-version: "22.04" | |
cpu-architecture: armhf | |
- # Ubuntu 22.04 arm64 | |
distribution-id: ubuntu | |
distribution-version: "22.04" | |
cpu-architecture: arm64 | |
- # Windows x86 | |
distribution-id: windows | |
distribution-version: "" | |
cpu-architecture: x86 | |
- # Windows x86_64 | |
distribution-id: windows | |
distribution-version: "" | |
cpu-architecture: x86_64 | |
container: ghcr.io/muhkuh-sys/mbs_ubuntu_2004_x86_64:latest | |
steps: | |
- name: Checkout repository | |
# Use the old checkout v1 here. The newer v2 requires git 2.28 which is not available in the standard distribution. | |
uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- name: Build | |
run: ./build_artifact.py ${{ matrix.platform.distribution-id }} ${{ matrix.platform.distribution-version }} ${{ matrix.platform.cpu-architecture }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifacts_${{ matrix.platform.distribution-id }}_${{ matrix.platform.distribution-version }}_${{ matrix.platform.cpu-architecture }} | |
path: | | |
targets/*.tar.gz | |
targets/*.zip |