-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.03 KB
/
ci.yml
File metadata and controls
41 lines (37 loc) · 1.03 KB
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
name: CI
on:
pull_request:
push:
permissions:
contents: read
env:
OUTPUT_NAME: Purse
ROJO_PROJECT: package.project.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rokit toolchain
uses: CompeyDev/setup-rokit@v0.1.2
- name: Install Wally packages
run: |
wally install
rojo sourcemap $ROJO_PROJECT --output sourcemap.json
wally-package-types --sourcemap sourcemap.json Packages/
- name: Run StyLua
run: stylua --check src/ models/
- name: Run selene
run: selene src/ models/
- name: Build Rojo project
run: |
mkdir dist
rojo build --output dist/$OUTPUT_NAME.rbxm $ROJO_PROJECT
rojo build --output dist/$OUTPUT_NAME.rbxmx $ROJO_PROJECT
- name: Archive build files
uses: actions/upload-artifact@v7
with:
name: ${{ env.OUTPUT_NAME }}
path: dist/
if-no-files-found: error