From 7295b14f6a7f215484f41eab380fea6de2bdb49b Mon Sep 17 00:00:00 2001 From: Devin Bidwell Date: Sun, 21 Dec 2025 16:32:11 -0700 Subject: [PATCH] Update changelog, update workflow files --- {.github => .gitea}/workflows/build.yml | 34 +++++++++++++++++++++++++ Changelog.md | 11 ++++++++ ModData/About/About.xml | 2 +- csharp_mod/Plugin.cs | 2 +- rust_compiler/Cargo.toml | 2 +- 5 files changed, 48 insertions(+), 3 deletions(-) rename {.github => .gitea}/workflows/build.yml (67%) diff --git a/.github/workflows/build.yml b/.gitea/workflows/build.yml similarity index 67% rename from .github/workflows/build.yml rename to .gitea/workflows/build.yml index da7e2b5..d7dfc12 100644 --- a/.github/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -4,6 +4,7 @@ name: CI/CD Pipeline on: push: branches: ["master"] + tags: ["*.*.*"] pull_request: branches: ["master"] @@ -57,6 +58,10 @@ jobs: slang-builder \ ./build.sh + - name: Zip Workshop Folder + run: | + zip -r release/workshop.zip release/workshop/ + # 3. Fix Permissions # Docker writes files as root. We need to own them to upload them. - name: Fix Permissions @@ -69,3 +74,32 @@ jobs: with: name: StationeersSlang-Release path: release/ + + release: + needs: build + runs-on: self-hosted + # ONLY run this job if we pushed a tag (e.g., v1.0.1) + if: startsWith(github.ref, 'refs/tags/') + steps: + - uses: actions/checkout@v4 + + # We download the artifact from the previous 'build' job + - name: Download Build Artifacts + uses: actions/download-artifact@v4 + with: + name: StationeersSlang-Release + path: ./release-files + + - name: Create Gitea Release + uses: https://gitea.com/actions/gitea-release-action@v1 + with: + files: | + ./release-files/workshop.zip + ./release-files/slang + ./release-files/slang.exe + name: ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Changelog.md b/Changelog.md index e5edd08..87dc8b5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,16 @@ # Changelog +[0.4.1] + +- Update syscalls for `loadSlot` and `setSlot` to support expressions instead of + just variables for the slot index +- Moved the main repository from GitHub to a self-hosted Gitea + - Restructured workflow files to support this change + - GitHub will still remain as a mirrored repository of the new + Gitea instance. + - This is in response to the new upcoming changes to the pricing model + for self-hosted GitHub action runners. + [0.4.0] - First pass getting compiled IC10 to output along side the Slang source code diff --git a/ModData/About/About.xml b/ModData/About/About.xml index a9e948d..2a468d3 100644 --- a/ModData/About/About.xml +++ b/ModData/About/About.xml @@ -2,7 +2,7 @@ Slang JoeDiertay - 0.4.0 + 0.4.1 [h1]Slang: High-Level Programming for Stationeers[/h1] diff --git a/csharp_mod/Plugin.cs b/csharp_mod/Plugin.cs index d33b721..84d3d35 100644 --- a/csharp_mod/Plugin.cs +++ b/csharp_mod/Plugin.cs @@ -41,7 +41,7 @@ namespace Slang { public const string PluginGuid = "com.biddydev.slang"; public const string PluginName = "Slang"; - public const string PluginVersion = "0.4.0"; + public const string PluginVersion = "0.4.1"; public static Mod MOD = new Mod(PluginName, PluginVersion); diff --git a/rust_compiler/Cargo.toml b/rust_compiler/Cargo.toml index ac41a84..f6a1882 100644 --- a/rust_compiler/Cargo.toml +++ b/rust_compiler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "slang" -version = "0.4.0" +version = "0.4.1" edition = "2021" [workspace]