mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-24 22:19:37 -04:00
fix(ci): Disable Linux armv7 and Windows builds, enable concurrency control
This commit is contained in:
parent
b0dbacfdc7
commit
ccce33f8b0
5 changed files with 49 additions and 97 deletions
|
@ -5,6 +5,10 @@ on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-gui-release-cb-${{ github.event.release.tag_name }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# We build on an older version to support older glib versions
|
# We build on an older version to support older glib versions
|
||||||
UBUNTU: "ubuntu-24.04"
|
UBUNTU: "ubuntu-24.04"
|
||||||
|
@ -61,8 +65,9 @@ jobs:
|
||||||
args: "--target x86_64-apple-darwin"
|
args: "--target x86_64-apple-darwin"
|
||||||
- platform: "ubuntu-24.04"
|
- platform: "ubuntu-24.04"
|
||||||
args: ""
|
args: ""
|
||||||
- platform: "windows-latest"
|
# Temporarily disabled Windows builds
|
||||||
args: ""
|
# - platform: "windows-latest"
|
||||||
|
# args: ""
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
81
.github/workflows/build-gui-release-binaries.yml
vendored
81
.github/workflows/build-gui-release-binaries.yml
vendored
|
@ -5,6 +5,10 @@ on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-gui-release-${{ github.event.release.tag_name }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-tauri:
|
publish-tauri:
|
||||||
# Do not publish preview releases to Github.
|
# Do not publish preview releases to Github.
|
||||||
|
@ -22,8 +26,9 @@ jobs:
|
||||||
args: "--target x86_64-apple-darwin"
|
args: "--target x86_64-apple-darwin"
|
||||||
- platform: "ubuntu-24.04" # We build on an older version to support older glib versions
|
- platform: "ubuntu-24.04" # We build on an older version to support older glib versions
|
||||||
args: "--bundles deb,appimage"
|
args: "--bundles deb,appimage"
|
||||||
- platform: "windows-latest"
|
# Temporarily disabled Windows builds
|
||||||
args: ""
|
# - platform: "windows-latest"
|
||||||
|
# args: ""
|
||||||
|
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -126,75 +131,3 @@ jobs:
|
||||||
projectPath: src-tauri
|
projectPath: src-tauri
|
||||||
args: ${{ matrix.args }}
|
args: ${{ matrix.args }}
|
||||||
tauriScript: cargo tauri
|
tauriScript: cargo tauri
|
||||||
|
|
||||||
flatpak-build:
|
|
||||||
name: Build Flatpak + update repo
|
|
||||||
needs: publish-tauri
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
# Image already contains flatpak, flatpak-builder and runtimes
|
|
||||||
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-47
|
|
||||||
options: --privileged # sandbox needs it
|
|
||||||
permissions:
|
|
||||||
contents: write # to upload bundle to the release
|
|
||||||
id-token: write # for Pages deploy
|
|
||||||
pages: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# 1. Download the .deb we just published on the release
|
|
||||||
- name: Grab release asset
|
|
||||||
run: |
|
|
||||||
ASSET="UnstoppableSwap_${{ github.ref_name }}_amd64.deb"
|
|
||||||
gh release download ${{ github.event.release.id }} --pattern "$ASSET"
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# 2. Update URL + SHA256 inside the manifest (yq = cleaner than sed)
|
|
||||||
- name: Rewrite manifest for new version
|
|
||||||
run: |
|
|
||||||
SHA=$(sha256sum UnstoppableSwap_*.deb | cut -d' ' -f1)
|
|
||||||
yq -i '
|
|
||||||
.modules[0].sources[0].url = "https://github.com/UnstoppableSwap/core/releases/download/${{ github.ref_name }}/UnstoppableSwap_${{ github.ref_name }}_amd64.deb" |
|
|
||||||
.modules[0].sources[0].sha256 = strenv(SHA)
|
|
||||||
' flatpak/net.unstoppableswap.gui.json
|
|
||||||
|
|
||||||
# 3. Import signing key (one-liner GPG action)
|
|
||||||
- uses: crazy-max/ghaction-import-gpg@v5
|
|
||||||
id: gpg
|
|
||||||
with:
|
|
||||||
gpg_private_key: ${{ secrets.FLATPAK_GPG_PRIVATE_KEY }}
|
|
||||||
passphrase: ${{ secrets.FLATPAK_GPG_PASSPHRASE }}
|
|
||||||
|
|
||||||
# 4. Build, export repo & one-click installer
|
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
|
||||||
with:
|
|
||||||
manifest-path: flatpak/net.unstoppableswap.gui.json
|
|
||||||
arch: x86_64
|
|
||||||
bundle: net.unstoppableswap.gui.flatpakref # produces bundle + repo
|
|
||||||
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
|
|
||||||
build-bundle: true
|
|
||||||
upload-artifact: false # we'll attach manually below
|
|
||||||
|
|
||||||
# 5. Attach bundle to the release so CLI users can "install --from"
|
|
||||||
- name: Upload .flatpakref to release
|
|
||||||
run: gh release upload ${{ github.event.release.id }} *.flatpakref --clobber
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# 6. Stage repo for GitHub Pages
|
|
||||||
# flatpak-builder exported everything into "repo"
|
|
||||||
- name: Prepare Pages artifact
|
|
||||||
run: |
|
|
||||||
mkdir -p public
|
|
||||||
cp -a repo/* public
|
|
||||||
# include the descriptor for GUI stores / CLI
|
|
||||||
cp net.unstoppableswap.gui.flatpakref public/
|
|
||||||
# Upload as Pages artifact
|
|
||||||
- uses: actions/upload-pages-artifact@v2
|
|
||||||
with:
|
|
||||||
path: public
|
|
||||||
|
|
||||||
# 7. Deploy to Pages
|
|
||||||
- uses: actions/deploy-pages@v1
|
|
||||||
|
|
40
.github/workflows/build-release-binaries.yml
vendored
40
.github/workflows/build-release-binaries.yml
vendored
|
@ -7,6 +7,10 @@ on:
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE_NAME: ghcr.io/unstoppableswap/asb
|
DOCKER_IMAGE_NAME: ghcr.io/unstoppableswap/asb
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-release-${{ github.event.release.tag_name }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_binaries:
|
build_binaries:
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -18,10 +22,11 @@ jobs:
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
archive_ext: tar
|
archive_ext: tar
|
||||||
- bin: swap
|
# Temporarily disabled armv7 Linux builds
|
||||||
target: armv7-unknown-linux-gnueabihf
|
# - bin: swap
|
||||||
os: ubuntu-latest
|
# target: armv7-unknown-linux-gnueabihf
|
||||||
archive_ext: tar
|
# os: ubuntu-latest
|
||||||
|
# archive_ext: tar
|
||||||
- bin: swap
|
- bin: swap
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
os: macos-13
|
os: macos-13
|
||||||
|
@ -30,18 +35,20 @@ jobs:
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
archive_ext: tar
|
archive_ext: tar
|
||||||
- bin: swap
|
# Temporarily disabled Windows builds
|
||||||
target: x86_64-pc-windows-msvc
|
# - bin: swap
|
||||||
os: windows-latest
|
# target: x86_64-pc-windows-msvc
|
||||||
archive_ext: zip
|
# os: windows-latest
|
||||||
|
# archive_ext: zip
|
||||||
- bin: asb
|
- bin: asb
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
archive_ext: tar
|
archive_ext: tar
|
||||||
- bin: asb
|
# Temporarily disabled armv7 Linux builds
|
||||||
target: armv7-unknown-linux-gnueabihf
|
# - bin: asb
|
||||||
os: ubuntu-latest
|
# target: armv7-unknown-linux-gnueabihf
|
||||||
archive_ext: tar
|
# os: ubuntu-latest
|
||||||
|
# archive_ext: tar
|
||||||
- bin: asb
|
- bin: asb
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
os: macos-13
|
os: macos-13
|
||||||
|
@ -50,10 +57,11 @@ jobs:
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
archive_ext: tar
|
archive_ext: tar
|
||||||
- bin: asb
|
# Temporarily disabled Windows builds
|
||||||
target: x86_64-pc-windows-msvc
|
# - bin: asb
|
||||||
os: windows-latest
|
# target: x86_64-pc-windows-msvc
|
||||||
archive_ext: zip
|
# os: windows-latest
|
||||||
|
# archive_ext: zip
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout tagged commit
|
- name: Checkout tagged commit
|
||||||
|
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -164,14 +164,16 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
os: ubuntu-latest-m
|
os: ubuntu-latest-m
|
||||||
- target: armv7-unknown-linux-gnueabihf
|
# Temporarily disabled armv7 Linux builds
|
||||||
os: ubuntu-latest-m
|
# - target: armv7-unknown-linux-gnueabihf
|
||||||
|
# os: ubuntu-latest-m
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
os: macos-13
|
os: macos-13
|
||||||
- target: aarch64-apple-darwin
|
- target: aarch64-apple-darwin
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
- target: x86_64-pc-windows-msvc
|
# Temporarily disabled Windows builds
|
||||||
os: windows-latest-l
|
# - target: x86_64-pc-windows-msvc
|
||||||
|
# os: windows-latest-l
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
if: github.event_name == 'push' || !github.event.pull_request.draft
|
if: github.event_name == 'push' || !github.event.pull_request.draft
|
||||||
steps:
|
steps:
|
||||||
|
|
4
.github/workflows/preview-release.yml
vendored
4
.github/workflows/preview-release.yml
vendored
|
@ -5,6 +5,10 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: preview-release
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create_release:
|
create_release:
|
||||||
name: Create preview release
|
name: Create preview release
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue