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

Added Github workflow #106

Draft
wants to merge 1 commit into
base: ipod_touch_2g
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions .github/workflows/!PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR

on:
pull_request_target:
types:
- opened
- synchronize
- ready_for_review
- labeled

jobs:
build:
needs: [ changes ]
if: ${{needs.changes.outputs.src == 'true' && !github.event.pull_request.draft}}
uses: ./.github/workflows/build_linux.yml
50 changes: 50 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Ubuntu

on:
workflow_call:
inputs:
os:
default: ubuntu-latest
type: string
required: false

upload:
default: false
type: boolean
required: false

ref:
default: ${{ github.ref }}
type: string
required: false

workflow_dispatch:
inputs:
os:
description: Environment
default: ubuntu-latest
type: string
required: true

upload:
description: Upload
default: true
type: boolean
required: true

permissions:
contents: read

jobs:
build:
runs-on: ${{ github.event.inputs.os || inputs.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{inputs.ref || github.ref}}

- name: Install Ubuntu dependencies
run: |
sudo apt-get update
sudo apt-get -y install make ninja-build pkg-config libssl-dev libsdl2-dev libpixman-1-dev libpixman-1-0 libglib2.0-dev