Skip to content

Commit

Permalink
Add workflow_dispatch for a workflow to be triggered manually
Browse files Browse the repository at this point in the history
Also update action versions.
  • Loading branch information
frno7 committed Dec 29, 2024
1 parent a955416 commit f99f4ea
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: build
name: Compile PlayStation 2 Linux

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/frno7/gentoo-mipsr5900el:main
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Archive tag
run: |
Expand Down Expand Up @@ -61,30 +62,34 @@ jobs:
- name: Publish NTSC kernel
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "vmlinuz-ntsc-${{ env.ARCHIVE_TAG }}"
if-no-files-found: error
path: vmlinuz-ntsc-${{ env.ARCHIVE_TAG }}.elf

- name: Publish PAL kernel
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "vmlinuz-pal-${{ env.ARCHIVE_TAG }}"
if-no-files-found: error
path: vmlinuz-pal-${{ env.ARCHIVE_TAG }}.elf

- name: Publish NTSC initramfs archive
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "initramfs-ntsc-${{ env.ARCHIVE_TAG }}"
if-no-files-found: error
path: usr/initramfs-ntsc.tar.gz

- name: Publish PAL initramfs archive
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "initramfs-pal-${{ env.ARCHIVE_TAG }}"
if-no-files-found: error
path: usr/initramfs-pal.tar.gz

- name: Publish PAL kernel and PAL initramfs archive as a prerelease package
Expand Down

0 comments on commit f99f4ea

Please sign in to comment.