tutorial:githubactions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:githubactions [2021/12/15 16:30]
iridescence
tutorial:githubactions [2021/12/15 17:04]
iridescence
Line 41: Line 41:
         # For this example, we're just running make         # For this example, we're just running make
           make           make
-      - name: Publish artifacts 
 </code> </code>
  
 Once you submit this file you should be set up for your PSP repository to be compiled automatically on commit and pull requests! Once you submit this file you should be set up for your PSP repository to be compiled automatically on commit and pull requests!
  
-==== Rust PSP ====+==== Rust ====
  
 Here's a sample for compiling in Rust-PSP for Github Actions! Here's a sample for compiling in Rust-PSP for Github Actions!
Line 86: Line 85:
         with:         with:
           command: psp           command: psp
 +</code>
 +
 +==== Zig ====
 +
 +Here's a sample with Zig-PSP!
 +
 +<code>
 +name: Zig-PSP
 +
 +on:
 +  push:
 +    branches: [ master ]
 +  pull_request:
 +    branches: [ master ]
 +
 +  workflow_dispatch:
 +
 +jobs:
 +  build:
 +    runs-on: ubuntu-latest
 +
 +    steps:
 +      - name: Checkout
 +        uses: actions/checkout@v2
 +        
 +      - name: Install Zig
 +        uses: nektro/actions-setup-zig@v1
              
-      - name: Upload a Build Artifact +      - name: Build 
-        usesactions/upload-artifact@v2.3.1 +        runzig build
-        with: +
-          name: psp_artifact # optional, default is artifact +
-          path: target/mipsel-sony-psp/debug/EBOOT.PBP +
-          if-no-files-found: warn # optional, default is warn +
-          retention-days: 30 # optional+
 </code> </code>
  • tutorial/githubactions.txt
  • Last modified: 2021/12/15 17:04
  • by iridescence