Skip to content

Commit

Permalink
Elixir build script to export releases.
Browse files Browse the repository at this point in the history
* linux
* windows
  • Loading branch information
fire committed Nov 13, 2024
1 parent e10fc50 commit e890e05
Show file tree
Hide file tree
Showing 30 changed files with 1,835 additions and 448 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- 'v*.*.*'
branches:
- main
- master
pull_request:

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install unzip
run: choco install unzip

- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.12'
otp-version: '24.0'

- name: Run build script
run: |
elixir --sname build -r buildscript.iex -e "BuildScript.all"
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: export/export_*
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ data_*/
.DS_Store

export/

addons/vsk_version/build_constants.gd.uid

addons/vsk_version/build_constants.gd

addons/vsk_version/vsk_version.gd.uid

commandlinetools-linux-8092744_latest.zip

jdk/

cmdline-tools/
1 change: 1 addition & 0 deletions addons/GPUTrail-main/GPUTrail3D.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bjpqewbtgif6n
1 change: 1 addition & 0 deletions addons/GPUTrail-main/plugin.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dtvbu6i7jdfpp
1 change: 1 addition & 0 deletions addons/GPUTrail-main/shaders/trail.gdshader.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://nqhuvjyl5bf4
1 change: 1 addition & 0 deletions addons/GPUTrail-main/shaders/trail_draw_pass.gdshader.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://b35htbko4hv85
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bhvqwircniboq
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/bool_timer.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dioc7tw6snepa
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/experiment.gdshader.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://b7vj4bp81hjsh
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/follow_test.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://18xcph2o0pci
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/hand.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bhgqer41udrla
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/procedural_grid_3d.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c6ouln8g13834
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://cubfh2dm1g350
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dheiq8csvlle8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c46ssct7fj6pj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://b2cjphncghsi8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dl6f33628oxnt
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/strokes.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://beag45eu5igqb
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/world_grab.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bcc178k783hmw
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/xr_origin.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://cqeyvdcoi37qr
1 change: 1 addition & 0 deletions addons/procedural_3d_grid/core/xr_pinch.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://c351cyh3u2n31
10 changes: 0 additions & 10 deletions addons/vsk_version/build_constants.gd

This file was deleted.

22 changes: 19 additions & 3 deletions addons/vsk_version/vsk_version.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,24 @@
@tool
extends Node

const build_constants_const = preload("build_constants.gd")
var build_constants = null

func _ready():
if ResourceLoader.exists("build_constants.gd"):
build_constants = preload("build_constants.gd")
else:
print("build_constants.gd does not exist")

static func get_build_label() -> String:
return build_constants_const.BUILD_DATE_STR + "\n" + build_constants_const.BUILD_LABEL
func get_build_label() -> String:
var build_label = "DEVELOPER_BUILD"
var build_date_str = "Build Date"
var build_unix_time = -1

if build_constants and build_constants.has("BUILD_LABEL"):
build_label = build_constants.BUILD_LABEL
if build_constants and build_constants.has("BUILD_DATE_STR"):
build_date_str = build_constants.BUILD_DATE_STR
if build_constants and build_constants.has("BUILD_UNIX_TIME"):
build_unix_time = build_constants.BUILD_UNIX_TIME

return build_date_str + "\n" + build_label
Loading

0 comments on commit e890e05

Please sign in to comment.