Merge pull request #396 from Icesito68/master #179
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
# This is a basic workflow to help you get started with Actions | |
name: msm-Build | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
name: Zip installer Build | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 8 | |
matrix: | |
device: | |
# sm8150 | |
- mh2lm | |
- nabu | |
- cepheus | |
- vayu-huaxing | |
- vayu-tianma | |
# sm8250 | |
- lmi | |
# sm8550 | |
- fuxi | |
# sm7325 | |
- lisa | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install requires packages | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install build-essential uuid-dev clang llvm iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext | |
- name: Build device ${{ matrix.device }} | |
run: | | |
./build.sh --device ${{ matrix.device }} --installer-zip | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: # Artifact name | |
name: ${{ matrix.device }} | |
# A file, directory or wildcard pattern that describes what to upload | |
path: ./*.zip |