-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build tagged releases and bump extension version to 0…
….7-beta0 This also updates the readme in anticipation of the build, and adds a couple of handy methods to the API. Beta 0 signifies the overall readiness, but I still need to add notarization and codesign for macOS to the mix.
- Loading branch information
Showing
18 changed files
with
214 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Make GitHub Release | ||
description: Create a GitHub release as a draft, and generate its description. | ||
|
||
inputs: | ||
release-version: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Prepare release notes for this release | ||
shell: bash | ||
run: | | ||
sed -i 's/\$\{COMMIT_HASH\}/${{ github.sha }}' $GITHUB_ACTION_PATH/release-notes.md | ||
sed -i 's/\$\{VERSION_TAG\}/${{ inputs.release-version }}' $GITHUB_ACTION_PATH/release-notes.md | ||
- name: Create a draft release with custom release notes | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh release create --verify-tag ${{ inputs.release-version }} --draft --title 'GDSiON ${{ inputs.release-version }}' --notes-file $GITHUB_ACTION_PATH/release-notes.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Built from commit [${COMMIT_HASH}](https://github.com/YuriSizov/gdsion/commits/${COMMIT_HASH}/). If you experience issues, [please report them](https://github.com/YuriSizov/gdsion/issues) as soon as you can. | ||
|
||
## Downloads | ||
|
||
* **[Download for Linux](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/libgdsion-linux.zip)** | ||
* **[Download for macOS](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/libgdsion-macos.zip)** | ||
* **[Download for Windows](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/libgdsion-windows.zip)** | ||
* **[Download for Web](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/libgdsion-web.zip)** (requires _Godot 4.3-beta1_ or later) | ||
* **[Download for Android](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/libgdsion-android.zip)** | ||
|
||
_These archives contain GDSiON binaries for both debug and release exports._ | ||
|
||
## Installation | ||
|
||
1. Extract the contents of the archive to your project's root folder. | ||
2. Make sure that you now have a `bin` folder (i.e. `res://bin`), and that it contains `libgdsion.gdextension` and some other files starting with `libgdsion`. | ||
3. Restart the editor. | ||
|
||
You must download a build for each platform you plan on exporting to. The `libgdsion.gdextension` is the same in every download and can be safely overwritten when extracting multiple archives. | ||
|
||
## Example project | ||
|
||
The example project showcases one of many applications of the synthesizer library in an interactive way. It's the best way to start experimenting with GDSiON! | ||
|
||
* [Download for Linux (x86_64)](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/example-project-linux-x86_64.zip) | ||
* [Download for macOS (Universal)](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/example-project-macos-universal.zip) | ||
* [Download for Windows (x86_64)](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/example-project-windows-x86_64.zip) | ||
* [Download for Windows (x86_32)](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/example-project-windows-x86_32.zip) | ||
* [Download project source](https://github.com/YuriSizov/gdsion/releases/download/${VERSION_TAG}/example-project-source.zip) | ||
|
||
_The example project source archive contains GDSiON binaries for all platforms. It may be required for you to open the project twice to import everything correctly._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Build and Publish Tagged Release | ||
|
||
on: | ||
push: | ||
tags: | ||
# Match only tags that look like version numbers, e.g. 0.1, 2.3-beta, 4.5.6d, etc. | ||
- '[0-9]+.[0-9]+*' | ||
|
||
# Make sure jobs cannot overlap. | ||
concurrency: | ||
group: build-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
# First, build the extension and upload the artifacts. | ||
|
||
build-linux: | ||
name: Compile and upload Linux version | ||
uses: ./.github/workflows/extension-build-linux.yml | ||
with: | ||
git-base-ref: ${{ github.ref }} | ||
|
||
build-macos: | ||
name: Compile and upload macOS version | ||
uses: ./.github/workflows/extension-build-macos.yml | ||
with: | ||
git-base-ref: ${{ github.ref }} | ||
|
||
build-windows: | ||
name: Compile and upload Windows version | ||
uses: ./.github/workflows/extension-build-windows.yml | ||
with: | ||
git-base-ref: ${{ github.ref }} | ||
|
||
build-web: | ||
name: Compile and upload Web version | ||
uses: ./.github/workflows/extension-build-web.yml | ||
with: | ||
git-base-ref: ${{ github.ref }} | ||
|
||
build-android: | ||
name: Compile and upload Android version | ||
uses: ./.github/workflows/extension-build-android.yml | ||
with: | ||
git-base-ref: ${{ github.ref }} | ||
|
||
# Then, make a draft release for the tag. | ||
|
||
release-all: | ||
name: Make a draft GitHub Release for the tag | ||
needs: [ build-linux, build-macos, build-windows, build-web, build-android ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Make GitHub Release | ||
uses: ./.github/actions/make-release | ||
with: | ||
release-version: ${{ github.ref }} | ||
|
||
# Lastly, use the artifacts to prepare the example project and publish the build. | ||
|
||
publish-all: | ||
name: Package and publish the extension | ||
needs: [ release-all ] | ||
uses: ./.github/workflows/extension-publish-all.yml | ||
with: | ||
release-version: ${{ github.ref }} | ||
|
||
export-example-project: | ||
name: Export the example project for target platforms | ||
needs: [ release-all ] | ||
uses: ./.github/workflows/example-export-project.yml | ||
|
||
publish-example-project: | ||
name: Package and publish the example project | ||
needs: [ export-example-project ] | ||
uses: ./.github/workflows/example-publish-project.yml | ||
with: | ||
release-version: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.