Merge pull request #392 from Icesito68/master #684
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: Image Build | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 8 | |
matrix: | |
device: | |
# sm8150 | |
- mh2lm | |
- betalm | |
- nabu | |
- vayu-huaxing | |
- vayu-tianma | |
- cepheus | |
- hotdog | |
- guacamole | |
- guacamoleb | |
# sdm845 | |
- fajita | |
- beryllium-ebbg | |
- beryllium-tianma | |
- polaris | |
- perseus | |
# sm7325 | |
- mona | |
- lisa | |
# msm8998 | |
- cheeseburger | |
# 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 required packages | |
run: | | |
sudo dpkg --add-architecture i386 | |
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - | |
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport | |
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main" | |
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 libgcc-s1:i386 libstdc++6:i386 | |
sudo apt-get install --install-recommends winehq-stable | |
- name: Build an image for ${{ matrix.device }} | |
run: | | |
./build.sh --device ${{ matrix.device }} | |
- 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: ./*.img |