|
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
|
|
date: ${{ steps.v.outputs.date }}
|
|
|
|
|
prerelease: ${{ steps.v.outputs.prerelease }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- id: v
|
|
|
|
|
name: Resolve version
|
|
|
|
|
run: |
|
|
|
|
@@ -72,17 +72,16 @@ jobs:
|
|
|
|
|
LIGHTCRAFT_VERSION: ${{ needs.version.outputs.version }}
|
|
|
|
|
LIGHTCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
# Fonts (optional build input; required for releases): see craftrules standards/fonts.md.
|
|
|
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
with:
|
|
|
|
|
repository: storytold/craft-fonts
|
|
|
|
|
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
|
|
|
|
|
path: craft-fonts
|
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
|
|
|
|
|
with:
|
|
|
|
|
targets: aarch64-apple-darwin, x86_64-apple-darwin
|
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
|
|
|
with:
|
|
|
|
|
key: release-macos-universal
|
|
|
|
|
- name: Apply version override
|
|
|
|
@@ -102,7 +101,7 @@ jobs:
|
|
|
|
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
|
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
|
|
|
run: packaging/macos/package.sh --arch universal
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-macos
|
|
|
|
|
path: dist/release/*
|
|
|
|
@@ -130,17 +129,16 @@ jobs:
|
|
|
|
|
LIGHTCRAFT_VERSION: ${{ needs.version.outputs.version }}
|
|
|
|
|
LIGHTCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
# Fonts (optional build input; required for releases): see craftrules standards/fonts.md.
|
|
|
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
with:
|
|
|
|
|
repository: storytold/craft-fonts
|
|
|
|
|
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
|
|
|
|
|
path: craft-fonts
|
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
|
|
|
|
|
with:
|
|
|
|
|
targets: ${{ matrix.target }}
|
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
|
|
|
with:
|
|
|
|
|
key: release-windows-${{ matrix.arch }}
|
|
|
|
|
- name: Apply version override
|
|
|
|
@@ -164,7 +162,7 @@ jobs:
|
|
|
|
|
AZURE_SIGNING_ACCOUNT: ${{ secrets.AZURE_SIGNING_ACCOUNT }}
|
|
|
|
|
AZURE_CERT_PROFILE: ${{ secrets.AZURE_CERT_PROFILE }}
|
|
|
|
|
run: ./packaging/windows/package.ps1 -Arch ${{ matrix.arch }}
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-windows-${{ matrix.arch }}
|
|
|
|
|
path: dist/release/*
|
|
|
|
@@ -187,9 +185,8 @@ jobs:
|
|
|
|
|
LIGHTCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
|
|
|
|
|
NFPM_VERSION: 2.47.0
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
# Fonts (optional build input; required for releases): see craftrules standards/fonts.md.
|
|
|
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
with:
|
|
|
|
|
repository: storytold/craft-fonts
|
|
|
|
|
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
|
|
|
|
@@ -203,8 +200,8 @@ jobs:
|
|
|
|
|
curl -fsSL -o "$RUNNER_TEMP/nfpm.deb" \
|
|
|
|
|
"https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_${{ matrix.deb }}.deb"
|
|
|
|
|
sudo dpkg -i "$RUNNER_TEMP/nfpm.deb"
|
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
|
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
|
|
|
|
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
|
|
|
with:
|
|
|
|
|
key: release-linux-${{ matrix.arch }}
|
|
|
|
|
- name: Apply version override
|
|
|
|
@@ -228,7 +225,7 @@ jobs:
|
|
|
|
|
"$appimage" --appimage-updateinformation | grep -F 'gh-releases-zsync|'
|
|
|
|
|
test -s "$appimage.zsync"
|
|
|
|
|
done
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-linux-${{ matrix.arch }}
|
|
|
|
|
path: dist/release/*
|
|
|
|
@@ -250,8 +247,8 @@ jobs:
|
|
|
|
|
LIGHTCRAFT_VERSION: ${{ needs.version.outputs.version }}
|
|
|
|
|
LIGHTCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
- uses: actions/download-artifact@v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-linux-${{ matrix.arch }}
|
|
|
|
|
path: dist/linux
|
|
|
|
@@ -265,7 +262,7 @@ jobs:
|
|
|
|
|
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
|
|
|
|
- name: Build the Flatpak bundle
|
|
|
|
|
run: packaging/linux/flatpak-bundle.sh "dist/linux/lightcraft-$LIGHTCRAFT_VERSION-linux-${{ matrix.arch }}.tar.gz"
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-flatpak-${{ matrix.arch }}
|
|
|
|
|
path: dist/release/*.flatpak
|
|
|
|
@@ -282,16 +279,15 @@ jobs:
|
|
|
|
|
LIGHTCRAFT_VERSION: ${{ needs.version.outputs.version }}
|
|
|
|
|
LIGHTCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
# Fonts (optional build input; required for releases): see craftrules standards/fonts.md.
|
|
|
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
with:
|
|
|
|
|
repository: storytold/craft-fonts
|
|
|
|
|
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
|
|
|
|
|
path: craft-fonts
|
|
|
|
|
- name: Build and package in a FreeBSD VM (tar.gz)
|
|
|
|
|
# vmactions/freebsd-vm v1.5.9, pinned by commit (it runs our build).
|
|
|
|
|
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc
|
|
|
|
|
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc # v1.5.9
|
|
|
|
|
with:
|
|
|
|
|
release: "14.3"
|
|
|
|
|
usesh: true
|
|
|
|
@@ -316,7 +312,7 @@ jobs:
|
|
|
|
|
bash packaging/freebsd/package.sh
|
|
|
|
|
tar -tzf dist/release/lightcraft-*-freebsd-x86_64.tar.gz \
|
|
|
|
|
| grep -E '/bin/lightcraft$|/bin/lightcraft-cli$|/share/applications/ai\.storyteller\.lightcraft\.desktop$|/share/doc/lightcraft/LICENSE-MIT$'
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-freebsd-x86_64
|
|
|
|
|
path: dist/release/*
|
|
|
|
@@ -331,17 +327,16 @@ jobs:
|
|
|
|
|
LIGHTCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
|
|
|
|
|
WASM_BINDGEN_VERSION: 0.2.129
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
# Fonts (optional build input; required for releases): see craftrules standards/fonts.md.
|
|
|
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
|
with:
|
|
|
|
|
repository: storytold/craft-fonts
|
|
|
|
|
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
|
|
|
|
|
path: craft-fonts
|
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
|
|
|
|
|
with:
|
|
|
|
|
targets: wasm32-unknown-unknown
|
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
|
|
|
with:
|
|
|
|
|
key: release-web
|
|
|
|
|
- name: Install wasm-bindgen CLI
|
|
|
|
@@ -359,7 +354,7 @@ jobs:
|
|
|
|
|
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
|
|
|
|
|
CRAFT_FONTS_REQUIRED: "1"
|
|
|
|
|
run: packaging/web/package.sh
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: release-web
|
|
|
|
|
path: dist/release/*
|
|
|
|
@@ -378,7 +373,7 @@ jobs:
|
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
GH_REPO: ${{ github.repository }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/download-artifact@v4
|
|
|
|
|
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
|
|
|
with:
|
|
|
|
|
pattern: release-*
|
|
|
|
|
path: artifacts
|
|
|
|
|