-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (75 loc) · 2.08 KB
/
nightly.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Dev Build
name: "Dev Build"
on:
push:
branches:
- dev
env:
NIGHTLY_TAG: "v0.0.0-latest"
NIGHTLY_NAME: "0.0.0-latest"
NIGHTLY_BODY: |
This is the latest schlange release build from the latest commit.
RGBDS_VERSION: "v0.8.0"
jobs:
release:
name: "Dev Build Release"
runs-on: ubuntu-latest
steps:
# INSTALL DEPENDENCIES
- id: apt-get-depends
name: "Install build dependencies"
run: |
sudo apt-get update
sudo apt-get install bison gcc git make -y;
# CHECKOUT RGBDS
- id: checkout-rgbds
name: "Checkout gbdev/rgbds"
uses: actions/checkout@v3
with:
path: rgbds
ref: ${{ env.RGBDS_VERSION }}
repository: gbdev/rgbds
# INSTALL RGBDS
- id: install-rgbds
name: "Install gbdev/rgbds"
working-directory: rgbds
run: |
sudo make install
# CHECKOUT REPOSITORY
- id: checkout-schlange
name: "Checkout CodeWithMa/schlange"
uses: actions/checkout@v3
# BUILD ROMS
- id: build-schlange
name: "Build schlange"
run: |
make
# DELETE OLD RELEASE
- name: Delete old release
id: delete_release
uses: cb80/delrel@latest
with:
tag: ${{ env.NIGHTLY_TAG }}
# ADVANCE NIGHTLY TAG TO MASTER
- name: Advance nightly tag to master
run: |
git tag ${{ env.NIGHTLY_TAG }} -f
git push --tags -f "https://CodeWithMa:$GITHUB_TOKEN@github.com/CodeWithMa/schlange.git"
# CREATE NEW RELEASE
- name: Create new release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.NIGHTLY_TAG }}
name: ${{ env.NIGHTLY_NAME }}
body: ${{ env.NIGHTLY_BODY }}
draft: false
prerelease: true
# UPLOAD ROM
- name: Upload schlange.gb
id: upload
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.NIGHTLY_TAG }}
files: |
./schlange.gb