-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (59 loc) · 1.64 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
61
62
63
64
65
66
name: Build
on:
push:
branches:
- main
- "feature/*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1.6.5
- name: Fetch Dependencies
run: dart pub get .
- name: Make Build Directories
run: mkdir -p build/releases/${{ matrix.platform }}
- name: Build
run: dart compile exe ./bin/main.dart --target-os ${{ matrix.platform }} -o build/releases/${{ matrix.platform }}/${{ matrix.output }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}
path: ${{ matrix.output }}
retention-days: 14
- name: Update MudkiPC
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git clone https://github.com/Pokemon-Manager/MudkiPC.git
cd MudkiPC
ls
git checkout main
git pull
cd assets
cd arceus
cp -r ../../../build/releases/${{ matrix.platform }} ./
git add ./
git commit -m "Update Arceus"
git push
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux
output: arceus.elf
- os: windows-latest
platform: windows
output: arceus.exe
- os: macos-latest
platform: macos
output: arceus.app