mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-19 13:46:03 +10:00
fix: use diddlesnaps/snapcraft-multiarch-action to generate arm64 snap (#949)
This commit is contained in:
30
.github/workflows/linux.yml
vendored
30
.github/workflows/linux.yml
vendored
@@ -101,7 +101,12 @@ jobs:
|
|||||||
|
|
||||||
snap:
|
snap:
|
||||||
needs: release
|
needs: release
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -109,18 +114,19 @@ jobs:
|
|||||||
- name: Check version
|
- name: Check version
|
||||||
run: ./stores/snapcraft/check_version.sh
|
run: ./stores/snapcraft/check_version.sh
|
||||||
|
|
||||||
- name: Install Snapcraft with LXD
|
- uses: docker/setup-qemu-action@v1
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
- uses: diddlesnaps/snapcraft-multiarch-action@v1
|
||||||
with:
|
with:
|
||||||
use_lxd: true
|
path: stores/snapcraft
|
||||||
|
architecture: ${{ matrix.platform }}
|
||||||
|
id: build
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Build snap
|
- uses: snapcore/action-publish@v1
|
||||||
run: ./stores/snapcraft/build.sh
|
with:
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
|
||||||
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
- name: Release snap
|
release: stable
|
||||||
run: ./stores/snapcraft/release.sh
|
|
||||||
env:
|
|
||||||
SNAP_STORE_LOGIN: ${{ secrets.SNAP_STORE_LOGIN }}
|
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CALLER_DIR=$( pwd )
|
|
||||||
|
|
||||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
||||||
|
|
||||||
sg lxd -c 'snapcraft --use-lxd'
|
|
||||||
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
cd "${CALLER_DIR}"
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
CALLER_DIR=$( pwd )
|
|
||||||
|
|
||||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
||||||
|
|
||||||
echo "$SNAP_STORE_LOGIN" | snapcraft login --with -
|
|
||||||
|
|
||||||
snapcraft upload --release=stable *.snap
|
|
||||||
|
|
||||||
snapcraft logout
|
|
||||||
|
|
||||||
cd "${CALLER_DIR}"
|
|
||||||
@@ -73,7 +73,7 @@ parts:
|
|||||||
after:
|
after:
|
||||||
- codium
|
- codium
|
||||||
plugin: dump
|
plugin: dump
|
||||||
source: local
|
source: snap/local
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
codium:
|
codium:
|
||||||
Reference in New Issue
Block a user