Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
tutorial:githubactions [2021/12/11 23:53] iridescence created |
tutorial:githubactions [2021/12/15 16:30] iridescence |
||
---|---|---|---|
Line 11: | Line 11: | ||
To add actions, browse to your repository, and in the main bar alongside other things like Issues or Pull Requests, you should see an " | To add actions, browse to your repository, and in the main bar alongside other things like Issues or Pull Requests, you should see an " | ||
- | For your PSP build, you should run on ubuntu-latest and use the PSPDEV docker container. | ||
- | Here is a sample YML | + | |
+ | ==== C/C++ ==== | ||
+ | For your PSP build, you should run on ubuntu-latest and use the PSPDEV docker container. | ||
< | < | ||
Line 41: | Line 42: | ||
make | make | ||
- name: Publish artifacts | - 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! | ||
+ | |||
+ | ==== Rust PSP ==== | ||
+ | |||
+ | Here's a sample for compiling in Rust-PSP for Github Actions! | ||
+ | |||
+ | < | ||
+ | name: Rust-PSP | ||
+ | |||
+ | on: | ||
+ | push: | ||
+ | branches: [ master ] | ||
+ | pull_request: | ||
+ | branches: [ master ] | ||
+ | workflow_dispatch: | ||
+ | |||
+ | jobs: | ||
+ | build: | ||
+ | runs-on: ubuntu-latest | ||
+ | |||
+ | steps: | ||
+ | - name: Checkout | ||
+ | uses: actions/ | ||
+ | | ||
+ | - name: Install toolchain | ||
+ | uses: actions-rs/ | ||
+ | with: | ||
+ | profile: default | ||
+ | toolchain: nightly | ||
+ | override: true | ||
+ | components: rust-src | ||
+ | | ||
+ | - name: Install PSP | ||
+ | uses: actions-rs/ | ||
+ | with: | ||
+ | command: install | ||
+ | args: cargo-psp | ||
+ | | ||
+ | - name: Build | ||
+ | uses: actions-rs/ | ||
+ | with: | ||
+ | command: psp | ||
+ | | ||
+ | - name: Upload a Build Artifact | ||
+ | uses: actions/ | ||
+ | with: | ||
+ | name: psp_artifact # optional, default is artifact | ||
+ | path: target/ | ||
+ | if-no-files-found: | ||
+ | retention-days: | ||
</ | </ |