Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.yml #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This is a basic workflow to help you get started with Actions
name: r8q Build

name: msm-Build

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# Controls when the action will run. Allows the workflow to be triggered manually via the GitHub Actions UI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
inputs:
device:
description: 'Enter the device name (e.g., r8q)'
required: true
default: 'r8q'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -18,12 +17,6 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
max-parallel: 8
matrix:
device:
- vayu-tianma

# 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
Expand All @@ -40,13 +33,13 @@ jobs:
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 }}
- name: Build an image for ${{ github.event.inputs.device }}
run: |
./build.sh --device ${{ matrix.device }}
./build.sh --device ${{ github.event.inputs.device }} -f

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with: # Artifact name
name: ${{ matrix.device }}
name: ${{ github.event.inputs.device }}
# A file, directory or wildcard pattern that describes what to upload
path: ./*.img