فهرست منبع

ci(linux): check only concerned archives [skip ci]

Baptiste Augrain 1 سال پیش
والد
کامیت
3187e3121f
2فایلهای تغییر یافته به همراه15 افزوده شده و 4 حذف شده
  1. 2 0
      .github/workflows/insider-linux.yml
  2. 13 4
      check_tags.sh

+ 2 - 0
.github/workflows/insider-linux.yml

@@ -153,6 +153,7 @@ jobs:
       - name: Check existing VSCodium tags/releases
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          CHECK_REH: 'no'
         run: ./check_tags.sh
 
       - name: Download vscode artifact
@@ -231,6 +232,7 @@ jobs:
       - name: Check existing VSCodium tags/releases
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          CHECK_ONLY_REH: 'yes'
         run: ./check_tags.sh
 
       - name: Download vscode artifact

+ 13 - 4
check_tags.sh

@@ -209,8 +209,17 @@ if [[ "${ASSETS}" != "null" ]]; then
     fi
   elif [[ "${OS_NAME}" == "linux" ]]; then
 
+    if [[ "${CHECK_ONLY_REH}" == "yes" ]]; then
+      if [[ -z $( contains "${APP_NAME_LC}-reh-linux-${VSCODE_ARCH}-${RELEASE_VERSION}.tar.gz" ) ]]; then
+        echo "Building on Linux ${VSCODE_ARCH} because we have no REH archive"
+        export SHOULD_BUILD="yes"
+      else
+        echo "Already have the Linux REH ${VSCODE_ARCH} archive"
+        export SHOULD_BUILD_REH="no"
+      fi
+
     # linux-arm64
-    if [[ "${VSCODE_ARCH}" == "arm64" ]]; then
+    elif [[ "${VSCODE_ARCH}" == "arm64" ]]; then
       if [[ -z $( contains "arm64.deb" ) ]]; then
         echo "Building on Linux arm64 because we have no DEB"
         export SHOULD_BUILD="yes"
@@ -232,7 +241,7 @@ if [[ "${ASSETS}" != "null" ]]; then
         export SHOULD_BUILD_TAR="no"
       fi
 
-      if [[ -z $( contains "${APP_NAME_LC}-reh-linux-arm64-${RELEASE_VERSION}.tar.gz" ) ]]; then
+      if [[ "${CHECK_REH}" != "no" && -z $( contains "${APP_NAME_LC}-reh-linux-arm64-${RELEASE_VERSION}.tar.gz" ) ]]; then
         echo "Building on Linux arm64 because we have no REH archive"
         export SHOULD_BUILD="yes"
       else
@@ -268,7 +277,7 @@ if [[ "${ASSETS}" != "null" ]]; then
         export SHOULD_BUILD_TAR="no"
       fi
 
-      if [[ -z $( contains "${APP_NAME_LC}-reh-linux-armhf-${RELEASE_VERSION}.tar.gz" ) ]]; then
+      if [[ "${CHECK_REH}" != "no" && -z $( contains "${APP_NAME_LC}-reh-linux-armhf-${RELEASE_VERSION}.tar.gz" ) ]]; then
         echo "Building on Linux arm because we have no REH archive"
         export SHOULD_BUILD="yes"
       else
@@ -329,7 +338,7 @@ if [[ "${ASSETS}" != "null" ]]; then
         export SHOULD_BUILD_APPIMAGE="no"
       fi
 
-      if [[ -z $( contains "${APP_NAME_LC}-reh-linux-x64-${RELEASE_VERSION}.tar.gz" ) ]]; then
+      if [[ "${CHECK_REH}" != "no" && -z $( contains "${APP_NAME_LC}-reh-linux-x64-${RELEASE_VERSION}.tar.gz" ) ]]; then
         echo "Building on Linux x64 because we have no REH archive"
         export SHOULD_BUILD="yes"
       else