mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 17:04:12 +03:00
fix: disable snap [skip ci]
This commit is contained in:
parent
3cad271b5c
commit
4e32237f33
3
.github/workflows/insider-linux.yml
vendored
3
.github/workflows/insider-linux.yml
vendored
@ -222,7 +222,8 @@ jobs:
|
|||||||
platform:
|
platform:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
# if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
||||||
|
if: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
24
.github/workflows/stable-linux.yml
vendored
24
.github/workflows/stable-linux.yml
vendored
@ -226,7 +226,6 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
APP_NAME: codium
|
|
||||||
RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }}
|
RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -234,7 +233,8 @@ jobs:
|
|||||||
platform:
|
platform:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
# if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
||||||
|
if: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -248,18 +248,32 @@ jobs:
|
|||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
- name: Prepare snapcraft.yaml
|
||||||
|
env:
|
||||||
|
ARCHITECTURE: ${{ matrix.platform }}
|
||||||
|
run: ./stores/snapcraft/build.sh
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
- uses: diddlesnaps/snapcraft-multiarch-action@v1
|
- uses: diddlesnaps/snapcraft-multiarch-action@v1
|
||||||
with:
|
with:
|
||||||
path: stores/snapcraft/stable
|
path: stores/snapcraft/stable
|
||||||
architecture: ${{ matrix.platform }}
|
architecture: ${{ matrix.platform }}
|
||||||
id: build
|
id: build
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
- uses: diddlesnaps/snapcraft-review-action@v1
|
- uses: diddlesnaps/snapcraft-review-action@v1
|
||||||
with:
|
with:
|
||||||
snap: ${{ steps.build.outputs.snap }}
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
isClassic: 'true'
|
isClassic: 'true'
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
|
||||||
|
- uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_name: ${{ env.ASSETS_REPOSITORY }}
|
||||||
|
repo_token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
|
file: ${{ steps.build.outputs.snap }}
|
||||||
|
tag: ${{ env.RELEASE_VERSION }}
|
||||||
|
if: env.SHOULD_DEPLOY_TO_RELEASE == 'yes'
|
||||||
|
|
||||||
- uses: snapcore/action-publish@master
|
- uses: snapcore/action-publish@master
|
||||||
env:
|
env:
|
||||||
@ -267,7 +281,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
snap: ${{ steps.build.outputs.snap }}
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
release: stable
|
release: stable
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_DEPLOY_TO_STORE == 'yes'
|
||||||
|
|
||||||
deb-rpm-repo-hook:
|
deb-rpm-repo-hook:
|
||||||
needs:
|
needs:
|
||||||
|
@ -65,12 +65,6 @@ cd build
|
|||||||
|
|
||||||
if [[ "${CI_BUILD}" == "no" ]]; then
|
if [[ "${CI_BUILD}" == "no" ]]; then
|
||||||
snapcraft --use-lxd --debug
|
snapcraft --use-lxd --debug
|
||||||
# else
|
|
||||||
# snapcraft
|
|
||||||
|
|
||||||
# SNAP_ARCHIVE=$( ls *.snap )
|
|
||||||
|
|
||||||
# echo "snap=$( pwd )/${SNAP_ARCHIVE}" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${CALLER_DIR}"
|
cd "${CALLER_DIR}"
|
||||||
|
@ -6,7 +6,6 @@ export SHOULD_BUILD="no"
|
|||||||
export SHOULD_DEPLOY_TO_RELEASE="no"
|
export SHOULD_DEPLOY_TO_RELEASE="no"
|
||||||
export SHOULD_DEPLOY_TO_STORE="no"
|
export SHOULD_DEPLOY_TO_STORE="no"
|
||||||
|
|
||||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
|
||||||
wget --quiet "https://api.github.com/repos/${ASSETS_REPOSITORY}/releases" -O gh_latest.json
|
wget --quiet "https://api.github.com/repos/${ASSETS_REPOSITORY}/releases" -O gh_latest.json
|
||||||
SNAP_URL=$( jq -r 'map(select(.tag_name == "'"${RELEASE_VERSION}"'"))|first.assets[].browser_download_url|select(endswith("'"_${ARCHITECTURE}.snap"'"))' gh_latest.json )
|
SNAP_URL=$( jq -r 'map(select(.tag_name == "'"${RELEASE_VERSION}"'"))|first.assets[].browser_download_url|select(endswith("'"_${ARCHITECTURE}.snap"'"))' gh_latest.json )
|
||||||
|
|
||||||
@ -14,7 +13,8 @@ if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
|||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
export SHOULD_DEPLOY_TO_RELEASE="yes"
|
export SHOULD_DEPLOY_TO_RELEASE="yes"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
|
if [[ "${VSCODE_QUALITY}" == "stable" ]]; then
|
||||||
sudo snap install --channel stable --classic snapcraft
|
sudo snap install --channel stable --classic snapcraft
|
||||||
|
|
||||||
echo "Architecture: ${ARCHITECTURE}"
|
echo "Architecture: ${ARCHITECTURE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user