Browse Source

ci(linux): add flag to disable appimage [skip ci]

Baptiste Augrain 9 months ago
parent
commit
41b1e88740
3 changed files with 8 additions and 4 deletions
  1. 2 1
      .github/workflows/insider-macos.yml
  2. 2 1
      .github/workflows/stable-linux.yml
  3. 4 2
      check_tags.sh

+ 2 - 1
.github/workflows/insider-macos.yml

@@ -42,7 +42,8 @@ jobs:
         include:
         include:
           - runner: macos-12
           - runner: macos-12
             vscode_arch: x64
             vscode_arch: x64
-          - runner: macos-14
+          # - runner: macos-14
+          - runner: [self-hosted, macOS, ARM64]
             vscode_arch: arm64
             vscode_arch: arm64
 
 
     steps:
     steps:

+ 2 - 1
.github/workflows/stable-linux.yml

@@ -179,8 +179,9 @@ jobs:
 
 
       - name: Check existing VSCodium tags/releases
       - name: Check existing VSCodium tags/releases
         env:
         env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           CHECK_REH: 'no'
           CHECK_REH: 'no'
+          DISABLE_APPIMAGE: ${{ vars.DISABLE_APPIMAGE }}
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: ./check_tags.sh
         run: ./check_tags.sh
         if: env.SHOULD_BUILD == 'yes'
         if: env.SHOULD_BUILD == 'yes'
 
 

+ 4 - 2
check_tags.sh

@@ -338,7 +338,7 @@ elif [[ "${ASSETS}" != "null" ]]; then
         export SHOULD_BUILD_DEB="no"
         export SHOULD_BUILD_DEB="no"
         export SHOULD_BUILD_RPM="no"
         export SHOULD_BUILD_RPM="no"
         export SHOULD_BUILD_APPIMAGE="no"
         export SHOULD_BUILD_APPIMAGE="no"
-      
+
         if [[ -z $( contains "${APP_NAME}-linux-riscv64-${RELEASE_VERSION}.tar.gz" ) ]]; then
         if [[ -z $( contains "${APP_NAME}-linux-riscv64-${RELEASE_VERSION}.tar.gz" ) ]]; then
           echo "Building on Linux RISC-V 64 because we have no TAR"
           echo "Building on Linux RISC-V 64 because we have no TAR"
           export SHOULD_BUILD="yes"
           export SHOULD_BUILD="yes"
@@ -381,7 +381,9 @@ elif [[ "${ASSETS}" != "null" ]]; then
           export SHOULD_BUILD_TAR="no"
           export SHOULD_BUILD_TAR="no"
         fi
         fi
 
 
-        if [[ -z $( contains "x86_64.AppImage" ) ]]; then
+        if [[ "${DISABLE_APPIMAGE}" == "yes" ]]; then
+          export SHOULD_BUILD_APPIMAGE="no"
+        elif [[ -z $( contains "x86_64.AppImage" ) ]]; then
           echo "Building on Linux x64 because we have no AppImage"
           echo "Building on Linux x64 because we have no AppImage"
           export SHOULD_BUILD="yes"
           export SHOULD_BUILD="yes"
         else
         else