-
-
Notifications
You must be signed in to change notification settings - Fork 41
60 lines (51 loc) · 1.42 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: build
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
plugin_build:
env:
PLUGIN_NAME: ARCropolis
runs-on: ubuntu-latest
container:
image: jugeeya/cargo-skyline:3.0.0-dkp-beta
steps:
- name: checkout version
uses: actions/checkout@v2
- name: check event type
run: echo ${{ github.event_name }}
- name: install rustfmt
uses: actions-rs/toolchain@v1
if: github.event_name == 'push'
with:
toolchain: stable
components: rustfmt
override: true
# format if necessary
- uses: mbrobbel/rustfmt-check@master
if: github.event_name == 'push'
with:
token: ${{ secrets.GITHUB_TOKEN }}
# build the project
- run: |
export PATH=$PATH:/root/.cargo/bin:/opt/devkitpro/devkitA64/bin \
&& cargo skyline build --release --no-default-features
env:
HOME: /root
- name: make folder structure
run: |
mkdir -p arcropolis-package/atmosphere/contents/01006a800016e000/romfs/skyline/plugins/
- name: find the plugin
run: |
find ./target/ -name *.nro
cp $(find ./target/ -name *.nro) arcropolis-package/atmosphere/contents/01006a800016e000/romfs/skyline/plugins/
- name: Upload plugin
uses: actions/upload-artifact@v2
with:
name: arcropolis
path: arcropolis-package