You've already forked AstralRinth
forked from didirus/AstralRinth
ci(theseus): assorted tweaks and fixes (#3949)
* ci(theseus-build): ensure only relevant bundle artifacts are uploaded Tauri leaves behind quite a bit of intermediate garbage in these target folders, even when building with no build cache. * ci(theseus-release): fix typo in RPM package URL generation * ci(theseus-build): generate shorter and more user-friendly commit build versions
This commit is contained in:
committed by
GitHub
parent
5d4f334505
commit
36ad1f16e4
21
.github/workflows/theseus-build.yml
vendored
21
.github/workflows/theseus-build.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
- name: 📥 Check out code
|
- name: 📥 Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: 🧰 Setup Rust toolchain
|
- name: 🧰 Setup Rust toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
@@ -77,9 +77,9 @@ jobs:
|
|||||||
|
|
||||||
- name: ⚙️ Set application version
|
- name: ⚙️ Set application version
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
APP_VERSION: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || format('v1.0.0-canary+{0}', github.sha) }}
|
|
||||||
run: |
|
run: |
|
||||||
|
APP_VERSION="$(git describe --tags --always | sed -E 's/-([0-9]+)-(g[0-9a-fA-F]+)$/-canary+\1.\2/')"
|
||||||
|
echo "Setting application version to $APP_VERSION"
|
||||||
dasel put -f apps/app/Cargo.toml -t string -v "${APP_VERSION#v}" 'package.version'
|
dasel put -f apps/app/Cargo.toml -t string -v "${APP_VERSION#v}" 'package.version'
|
||||||
dasel put -f packages/app-lib/Cargo.toml -t string -v "${APP_VERSION#v}" 'package.version'
|
dasel put -f packages/app-lib/Cargo.toml -t string -v "${APP_VERSION#v}" 'package.version'
|
||||||
dasel put -f apps/app-frontend/package.json -t string -v "${APP_VERSION#v}" 'version'
|
dasel put -f apps/app-frontend/package.json -t string -v "${APP_VERSION#v}" 'version'
|
||||||
@@ -100,12 +100,6 @@ jobs:
|
|||||||
dasel delete -f apps/app/tauri-release.conf.json 'bundle.windows.signCommand'
|
dasel delete -f apps/app/tauri-release.conf.json 'bundle.windows.signCommand'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 🗑️ Clean up cached bundles
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
rm -rf target/release/bundle
|
|
||||||
rm -rf target/*/release/bundle || true
|
|
||||||
|
|
||||||
- name: 🔨 Build macOS app
|
- name: 🔨 Build macOS app
|
||||||
run: pnpm --filter=@modrinth/app run tauri build --target universal-apple-darwin --config tauri-release.conf.json
|
run: pnpm --filter=@modrinth/app run tauri build --target universal-apple-darwin --config tauri-release.conf.json
|
||||||
if: startsWith(matrix.platform, 'macos')
|
if: startsWith(matrix.platform, 'macos')
|
||||||
@@ -147,5 +141,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: App bundle (${{ matrix.artifact-target-name }})
|
name: App bundle (${{ matrix.artifact-target-name }})
|
||||||
path: |
|
path: |
|
||||||
target/release/bundle/**
|
target/release/bundle/appimage/Modrinth App_*.AppImage*
|
||||||
target/*/release/bundle/**
|
target/release/bundle/deb/Modrinth App_*.deb*
|
||||||
|
target/release/bundle/rpm/Modrinth App-*.rpm*
|
||||||
|
target/universal-apple-darwin/release/bundle/macos/Modrinth App.app.tar.gz*
|
||||||
|
target/universal-apple-darwin/release/bundle/dmg/Modrinth App_*.dmg*
|
||||||
|
target/release/bundle/nsis/Modrinth App_*-setup.exe*
|
||||||
|
target/release/bundle/nsis/Modrinth App_*-setup.nsis.zip*
|
||||||
|
|||||||
2
.github/workflows/theseus-release.yml
vendored
2
.github/workflows/theseus-release.yml
vendored
@@ -67,7 +67,7 @@ jobs:
|
|||||||
"install_urls": [
|
"install_urls": [
|
||||||
@uri "${{ env.LAUNCHER_FILES_BUCKET_BASE_URL }}/versions/\($versionTag)/linux/\("Modrinth App_" + $versionTag + "_amd64.deb")",
|
@uri "${{ env.LAUNCHER_FILES_BUCKET_BASE_URL }}/versions/\($versionTag)/linux/\("Modrinth App_" + $versionTag + "_amd64.deb")",
|
||||||
@uri "${{ env.LAUNCHER_FILES_BUCKET_BASE_URL }}/versions/\($versionTag)/linux/\("Modrinth App_" + $versionTag + "_amd64.AppImage")",
|
@uri "${{ env.LAUNCHER_FILES_BUCKET_BASE_URL }}/versions/\($versionTag)/linux/\("Modrinth App_" + $versionTag + "_amd64.AppImage")",
|
||||||
@uri "${{ env.LAUNCHER_FILES_BUCKET_BASE_URL }}/versions/\($versionTag)/linux/\("Modrinth App_" + $versionTag + "-1.x86_64.rpm")"
|
@uri "${{ env.LAUNCHER_FILES_BUCKET_BASE_URL }}/versions/\($versionTag)/linux/\("Modrinth App-" + $versionTag + "-1.x86_64.rpm")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"windows-x86_64": {
|
"windows-x86_64": {
|
||||||
|
|||||||
Reference in New Issue
Block a user