tazel
A build system for C, C++, Objective-C, Objective-C++ and Zig, with C# project files.
Clonegit clone https://git.progmasoft.com/tazel
Release 0.1.0
- Commit
cc6759cc25a1b1f09236b08ff887f0bcb66ebc5b- Author
- Leitwolf11 ·
- Parents
15a775a52063
Changes
.github/workflows/release.yml | 124 ++++++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 5 +- Directory.Build.props | 2 + README.md | 15 +++++ 4 files changed, 145 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a1a71c9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,124 @@ +# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> +# SPDX-License-Identifier: MIT + +# Runs when a GitHub release of Tazel is published: builds Tazel for each platform, attaches the archives and their +# SHA-256 sums to the release, and publishes the NuGet packages of the plugin API, the plugin SDK and its templates. +name: Release + +on: + release: + types: [published] + +permissions: + contents: read + +# One run per release; a second publication of the same release waits instead of uploading twice. +concurrency: + group: release-${{ github.event.release.tag_name }} + cancel-in-progress: false + +env: + DOTNET_NOLOGO: "1" + DOTNET_CLI_TELEMETRY_OPTOUT: "1" + +jobs: + build: + name: Build (${{ matrix.rid }}) + if: startsWith(github.event.release.tag_name, 'tazel-') + runs-on: ${{ matrix.os }} + timeout-minutes: 20 + strategy: + fail-fast: true + matrix: + include: + - { os: ubuntu-26.04, rid: linux-x64 } + - { os: ubuntu-26.04, rid: linux-arm64 } + - { os: ubuntu-26.04, rid: linux-musl-x64 } + - { os: ubuntu-26.04, rid: linux-musl-arm64 } + - { os: ubuntu-26.04, rid: win-x64 } + - { os: ubuntu-26.04, rid: win-arm64 } + # On macOS, so that the SDK signs the launcher, which arm64 Macs require. + - { os: macos-15, rid: osx-arm64 } + - { os: macos-15, rid: osx-x64 } + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + ref: ${{ github.event.release.tag_name }} + + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5 + with: + global-json-file: global.json + + - name: Check the version + shell: bash + env: + TAG: ${{ github.event.release.tag_name }} + run: | + version=$(dotnet msbuild src/Progmasoft.Tazel -getProperty:Version) + test "tazel-$version" = "$TAG" || { echo "the tag $TAG is not tazel-$version" >&2; exit 1; } + + # Framework-dependent: the archive runs on the .NET 10 runtime of the machine. + - name: Publish + shell: bash + env: + RID: ${{ matrix.rid }} + TAG: ${{ github.event.release.tag_name }} + run: | + dotnet publish src/Progmasoft.Tazel -c Release -r "$RID" --self-contained false -o "artifacts/$TAG-$RID" + cd artifacts + if [[ "$RID" == win-* ]]; then + zip -qr "$TAG-$RID.zip" "$TAG-$RID" + else + tar -cJf "$TAG-$RID.tar.xz" "$TAG-$RID" + fi + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: archive-${{ matrix.rid }} + path: | + artifacts/*.tar.xz + artifacts/*.zip + if-no-files-found: error + retention-days: 7 + + publish: + name: Attach and publish + needs: build + runs-on: ubuntu-26.04 + timeout-minutes: 15 + environment: release + permissions: + contents: write # to attach the archives to the release + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + ref: ${{ github.event.release.tag_name }} + + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5 + with: + global-json-file: global.json + + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + pattern: archive-* + path: artifacts/release + merge-multiple: true + + - name: Attach the archives and their sums + env: + GH_TOKEN: ${{ github.token }} + TAG: ${{ github.event.release.tag_name }} + run: | + cd artifacts/release + sha256sum -- *.tar.xz *.zip > "$TAG.sha256sums" + gh release upload "$TAG" -- *.tar.xz *.zip "$TAG.sha256sums" --repo "$GITHUB_REPOSITORY" + + - name: Publish the NuGet packages + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + run: | + dotnet pack Tazel.slnx -c Release -o artifacts/packages + dotnet nuget push "artifacts/packages/*.nupkg" --api-key "$NUGET_API_KEY" \ + --source https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/CHANGELOG.md b/CHANGELOG.md index 2099e26..d1a3558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,10 @@ ## Unreleased -The first version of Tazel, written in C# for .NET 10. +## 0.1.0 - 2026-11-20 + +The first release of Tazel, written in C# for .NET 10. Archives for Linux, macOS and Windows, +and the NuGet packages of the plugin API, the plugin SDK and its templates. - Project files are C# scripts: `MODULE.csx` at the root of a module, `BUILD.csx` in each package, run with the C# scripting of Roslyn. diff --git a/Directory.Build.props b/Directory.Build.props index a64771a..8481182 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -20,5 +20,7 @@ <RepositoryUrl>https://github.com/Progmasoft/tazel</RepositoryUrl> <Version>0.1.0</Version> <IsPackable>false</IsPackable> + <!-- Tazel speaks English; the compilers' message translations are left out of what it ships. --> + <SatelliteResourceLanguages>en</SatelliteResourceLanguages> </PropertyGroup> </Project> diff --git a/README.md b/README.md index 985c347..a5c13bf 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,21 @@ tazel package The [documentation](docs/README.md) covers the project files, the commands and how Tazel is built. +## Installing Tazel + +Tazel runs on the .NET 10 runtime. Each [release](https://github.com/Progmasoft/tazel/releases) has an archive for +Linux (`linux-x64`, `linux-arm64`, and `linux-musl-x64`, `linux-musl-arm64` for musl systems such as Alpine), macOS +(`osx-arm64`, `osx-x64`) and Windows (`win-x64`, `win-arm64`), and a `.sha256sums` file to check them against: + +```text +sha256sum --check --ignore-missing tazel-0.1.0.sha256sums +tar -xJf tazel-0.1.0-linux-x64.tar.xz +tazel-0.1.0-linux-x64/tazel version +``` + +Put the unpacked directory on `PATH`. On Windows, unpack the `.zip` and run `tazel.exe`. Plugins are built with the +NuGet packages `Progmasoft.Tazel.PluginSdk` and `Progmasoft.Tazel.PluginApi` ([plugins](docs/plugins.md)). + ## Building Tazel ```text