Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Move artifact upload to release-linux

Kabir Oberai4d28a353d845
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5311921..92c1cef 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,11 +17,6 @@ jobs:
- name: Build
run: |
docker compose run --build --rm supersign -c "swift build --product SupersignCLI"
- - name: Upload artifact
- uses: actions/upload-artifact@v4
- with:
- name: Supersign-${{ matrix.host.arch }}.AppImage
- path: Linux/packages/Supersign.AppImage
build-macos:
runs-on: macos-15
steps:
diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml
index 6934b6e..cfcc9ed 100644
--- a/.github/workflows/release-linux.yml
+++ b/.github/workflows/release-linux.yml
@@ -2,8 +2,16 @@ on:
workflow_dispatch:
jobs:
- release:
- runs-on: ubuntu-latest
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ host:
+ - runner: ubuntu-24.04
+ arch: x86_64
+ - runner: ubuntu-24.04-arm
+ arch: aarch64
+ runs-on: ${{ matrix.host.runner }}
permissions:
contents: write
steps:
@@ -12,9 +20,29 @@ jobs:
- name: Build
run: |
docker compose run --build --rm supersign -c Linux/build.sh
- - name: Release
- uses: softprops/action-gh-release@v2
+ mv Linux/packages/Supersign.AppImage Linux/packages/Supersign-${{ matrix.host.arch }}.AppImage
+ - name: Upload artifact
+ id: upload_artifact
+ uses: actions/upload-artifact@v4
with:
- draft: true
- files: |
- Linux/packages/Supersign.AppImage
+ name: Supersign-${{ matrix.host.arch }}
+ path: Linux/packages/Supersign-${{ matrix.host.arch }}.AppImage
+ release:
+ needs: build
+ runs-on: ubuntu-24.04
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v4
+ - name: Download artifact
+ id: download_artifact
+ uses: actions/download-artifact@v4
+ with:
+ pattern: Supersign-*
+ path: output
+ - name: Create and publish release
+ id: publish_release
+ run: |
+ TAG="${GITHUB_REF##*/}-${GITHUB_SHA:0:7}"
+ gh release create "$TAG" --draft --title "Draft Release"
+ gh release upload "$TAG" output/**/*.AppImage