Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 79 additions & 79 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
name: Release

on:
push:
tags:
- "v*"

permissions:
contents: write

env:
CARGO_TERM_COLOR: always

jobs:
verify-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Verify tag commit is on main
run: |
git fetch origin main
if ! git merge-base --is-ancestor "${GITHUB_SHA}" origin/main; then
echo "Tag commit ${GITHUB_SHA} is not on main"
exit 1
fi

build:
needs: verify-tag
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact: linux-x86_64
library: libfibonacci_sphere_gd.so
- os: windows-latest
artifact: windows-x86_64
library: fibonacci_sphere_gd.dll
- os: macos-latest
artifact: macos-arm64
library: libfibonacci_sphere_gd.dylib
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- name: Build GDExtension (release)
run: cargo build -p fibonacci_sphere_gd --release
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: target/release/${{ matrix.library }}

package:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Package addon and demo zips
run: |
chmod +x scripts/linux/package-godot-release.sh
./scripts/linux/package-godot-release.sh \
"${GITHUB_REF_NAME}" \
"artifacts/linux-x86_64/libfibonacci_sphere_gd.so" \
"artifacts/windows-x86_64/fibonacci_sphere_gd.dll" \
"artifacts/macos-arm64/libfibonacci_sphere_gd.dylib"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/fibonacci_sphere-*.zip
dist/fibonacci_sphere-demo-*.zip
dist/checksums-*.txt
generate_release_notes: true
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
verify-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Verify tag commit is on main
run: |
git fetch origin main
if ! git merge-base --is-ancestor "${GITHUB_SHA}" origin/main; then
echo "Tag commit ${GITHUB_SHA} is not on main"
exit 1
fi
build:
needs: verify-tag
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact: linux-x86_64
library: libfibonacci_sphere_gd.so
- os: windows-latest
artifact: windows-x86_64
library: fibonacci_sphere_gd.dll
- os: macos-latest
artifact: macos-arm64
library: libfibonacci_sphere_gd.dylib
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- name: Build GDExtension (release)
run: cargo build -p fibonacci_sphere_gd --release
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: target/release/${{ matrix.library }}
package:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Package addon and demo zips
run: |
chmod +x scripts/linux/package-godot-release.sh
./scripts/linux/package-godot-release.sh \
"${GITHUB_REF_NAME}" \
"artifacts/linux-x86_64/libfibonacci_sphere_gd.so" \
"artifacts/windows-x86_64/fibonacci_sphere_gd.dll" \
"artifacts/macos-arm64/libfibonacci_sphere_gd.dylib"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/fibonacci_sphere-*.zip
dist/fibonacci_sphere-demo-*.zip
dist/checksums-*.txt
generate_release_notes: true
58 changes: 29 additions & 29 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose