Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorial:githubactions [2021/12/15 16:30] iridescence |
tutorial:githubactions [2021/12/15 17:04] (current) 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 | ||
</ | </ | ||
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 | ||
+ | </ | ||
+ | |||
+ | ==== Zig ==== | ||
+ | |||
+ | Here's a sample with Zig-PSP! | ||
+ | |||
+ | < | ||
+ | name: Zig-PSP | ||
+ | |||
+ | on: | ||
+ | push: | ||
+ | branches: [ master ] | ||
+ | pull_request: | ||
+ | branches: [ master ] | ||
+ | |||
+ | workflow_dispatch: | ||
+ | |||
+ | jobs: | ||
+ | build: | ||
+ | runs-on: ubuntu-latest | ||
+ | |||
+ | steps: | ||
+ | - name: Checkout | ||
+ | uses: actions/ | ||
+ | | ||
+ | - name: Install Zig | ||
+ | uses: nektro/ | ||
| | ||
- | - name: Upload a Build Artifact | + | - name: Build |
- | | + | |
- | with: | + | |
- | name: psp_artifact # optional, default is artifact | + | |
- | path: target/ | + | |
- | if-no-files-found: | + | |
- | retention-days: | + | |
</ | </ |