Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jugeeya authored Jun 25, 2020
1 parent f4991f6 commit 2e76f13
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust Build

on:
push:
branches: [ master ]
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install cargo-skyline
run: cargo install --git https://github.com/jam1garner/cargo-skyline
- name: Install rust-std-skyline-squashed
run: cd .. && git clone https://github.com/jam1garner/rust-std-skyline-squashed && cd -
- name: Attempt to build
run: PATH=$PATH:/usr/share/rust/.rustup/toolchains/nightly-2020-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin cargo skyline build --release
- name: Update Release
env:
PLUGIN_NAME: 'libnro_hook.nro' # change this to the name of your plugin
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
allow_override: true
gzip: false
tag: master
name: master
body: Build of ${{env.PLUGIN_NAME}} from master.
files: >
./target/aarch64-skyline-switch/release/${{env.PLUGIN_NAME}}

0 comments on commit 2e76f13

Please sign in to comment.