Skip to content

Upgrade upload-artifact action to version 4 #436 #715

Upgrade upload-artifact action to version 4 #436

Upgrade upload-artifact action to version 4 #436 #715

Workflow file for this run

# 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
sudo install -d -m 0755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key \
https://dl.winehq.org/wine-builds/winehq.key
sudo chmod 644 /etc/apt/keyrings/winehq-archive.key
sudo wget -O /etc/apt/sources.list.d/winehq-noble.sources \
https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable libsdl2-2.0-0 libsdl2-dev build-essential uuid-dev clang llvm iasl nasm gcc-aarch64-linux-gnu abootimg python3-pil python3-git gettext libgcc-s1:i386 libstdc++6:i386 -y
- name: Build an image for ${{ matrix.device }}
run: |
./build.sh --device ${{ matrix.device }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with: # Artifact name
name: ${{ matrix.device }}
# A file, directory or wildcard pattern that describes what to upload
path: ./*.img