Skip to content

Commit

Permalink
Workflow to build software automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Jun 15, 2024
1 parent 12f2b0b commit 3ba35e4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-software.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Software

on:
push: # Trigger for pushes.
pull_request: # Trigger for pull requests.
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch: # Allows for manual triggering.
inputs:
ref:
description: "The ref to build and test."
required: false

# If another instance of this workflow is started for the same PR, cancel the
# old one. If a PR is updated and a new test run is started, the old test run
# will be cancelled automatically to conserve resources.
concurrency:
group: ${{ github.workflow }}-${{ inputs.ref || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}

- name: Pull SGDK docker container
run: docker pull ghcr.io/stephane-d/sgdk:latest

- name: Build each project
run: |
./embed-video-in-rom/build.sh
./stream-with-special-hardware/build.sh

0 comments on commit 3ba35e4

Please sign in to comment.