Skip to content

Commit 6f198e3

Browse files
committed
ci: setup nightly
1 parent 3366022 commit 6f198e3

6 files changed

Lines changed: 60 additions & 17 deletions

File tree

.github/workflows/nightly.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: nightly
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: ["**.luau"]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup rokit
19+
uses: CompeyDev/setup-rokit@v0.1.0
20+
- name: Setup pesde
21+
uses: axiom-co/setup-pesde@v0.4.1
22+
- name: Install dependencies
23+
run: pesde install
24+
- name: Build Rocket
25+
run: lune run build model
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
path: Rocket.rbxm

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ pesde.lock
1111
.DS_Store
1212
Thumbs.db
1313
src/assets
14+
15+
Rocket.rbxm

.lune/.luaurc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"aliases": {
3+
"lune": "~/.lune/.typedefs/0.10.4/",
4+
"pkgs": "../lune_packages"
5+
}
6+
}

.lune/build.luau

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
local fs = require("@lune/fs")
2+
local process = require("@lune/process")
3+
4+
type BuildOutput = "model" | "plugin"
5+
local output = process.args[1] :: BuildOutput
6+
if output ~= "model" and output ~= "plugin" then
7+
print(`usage: lune run build [model|plugin]`)
8+
process.exit(1)
9+
end
10+
11+
local INPUT_DIR = "src"
12+
local OUTPUT_DIR = "out"
13+
local EXEC_OPTIONS: process.ExecOptions = { stdio = "forward" }
14+
15+
if fs.isDir(process.cwd .. OUTPUT_DIR) then
16+
print("Cleaning output directory")
17+
fs.removeDir(process.cwd .. OUTPUT_DIR)
18+
end
19+
20+
process.exec("rojo", { "sourcemap", "--output", "sourcemap.json" }, EXEC_OPTIONS)
21+
process.exec("darklua", { "process", INPUT_DIR, OUTPUT_DIR }, EXEC_OPTIONS)
22+
process.exec("rojo", { "build", if output == "model" then "--output" else "--plugin", "Rocket.rbxm" }, EXEC_OPTIONS)
23+
process.exit(0)

.zed/settings.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@
44
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
55
{
66
"project_name": "Rocket",
7-
"file_scan_exclusions": [
8-
// zed
9-
"**/.git",
10-
"**/.svn",
11-
"**/.hg",
12-
"**/.jj",
13-
"**/CVS",
14-
"**/.DS_Store",
15-
"**/Thumbs.db",
16-
"**/.classpath",
17-
"**/.settings",
18-
// rocket
19-
"luau_packages",
20-
"lune_packages",
21-
"pesde.lock",
22-
"out"
23-
],
247
"file_types": {
258
"JSONC": [".luaurc"]
269
},

pesde.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ sourcemap_generator = ".pesde/scripts/sourcemap_generator.luau"
2929
[dev_dependencies]
3030
scripts = { name = "pesde/scripts_rojo", version = "^0.2.0", target = "lune" }
3131
rojo = { name = "pesde/rojo", version = "^7.5.1", target = "lune" }
32+
pathfs = { name = "jiwonz/pathfs", version = "^0.6.0", target = "lune" }
3233

3334
[engines]
3435
pesde = "^0.7.2"

0 commit comments

Comments
 (0)