ソースを参照

ci: share more env variables

Baptiste Augrain 2 年 前
コミット
34d56d0b52
1 ファイル変更24 行追加23 行削除
  1. 24 23
      .github/workflows/insider-linux.yml

+ 24 - 23
.github/workflows/insider-linux.yml

@@ -18,8 +18,11 @@ on:
     - '**/*.md'
     - '**/*.md'
 
 
 env:
 env:
+  APP_NAME: VSCodium
   ASSETS_REPOSITORY: ${{ github.repository }}-insiders
   ASSETS_REPOSITORY: ${{ github.repository }}-insiders
   GITHUB_BRANCH: insider
   GITHUB_BRANCH: insider
+  OS_NAME: linux
+  VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
   VSCODE_QUALITY: insider
   VSCODE_QUALITY: insider
 
 
 jobs:
 jobs:
@@ -51,12 +54,10 @@ jobs:
     needs:
     needs:
       - check
       - check
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    container:
-      image: ${{ matrix.image }}
-      env:
-        MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
-        MS_TAG: ${{ needs.check.outputs.MS_TAG }}
-        RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
+    env:
+      MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
+      MS_TAG: ${{ needs.check.outputs.MS_TAG }}
+      RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
@@ -65,6 +66,8 @@ jobs:
           image: vscodium/vscodium-linux-build-agent:centos7-devtoolset8-x64
           image: vscodium/vscodium-linux-build-agent:centos7-devtoolset8-x64
         # - vscode_arch: arm64
         # - vscode_arch: arm64
         #   image: vscodium/vscodium-linux-build-agent:bionic-x64
         #   image: vscodium/vscodium-linux-build-agent:bionic-x64
+    container:
+      image: ${{ matrix.image }}
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
 
 
     steps:
     steps:
@@ -110,18 +113,12 @@ jobs:
       - check
       - check
       - dependencies
       - dependencies
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    container:
-      image: ${{ matrix.image }}
-      env:
-        APP_NAME: VSCodium
-        MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
-        MS_TAG: ${{ needs.check.outputs.MS_TAG }}
-        OS_NAME: linux
-        RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
-        SHOULD_BUILD: ${{ needs.check.outputs.SHOULD_BUILD }}
-        SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
-        VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
-        VSCODE_ARCH: ${{ matrix.vscode_arch }}
+    env:
+      MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
+      MS_TAG: ${{ needs.check.outputs.MS_TAG }}
+      RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
+      SHOULD_BUILD: ${{ needs.check.outputs.SHOULD_BUILD }}
+      SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
@@ -135,13 +132,17 @@ jobs:
         - vscode_arch: armhf
         - vscode_arch: armhf
           npm_arch: armv7l
           npm_arch: armv7l
           image: vscodium/vscodium-linux-build-agent:stretch-armhf
           image: vscodium/vscodium-linux-build-agent:stretch-armhf
+    container:
+      image: ${{ matrix.image }}
+      env:
+        VSCODE_ARCH: ${{ matrix.vscode_arch }}
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
 
 
     steps:
     steps:
-      - name: Re-export env variables
-        run: |
-          echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}"
-          echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}"
+      # - name: Re-export env variables
+      #   run: |
+      #     echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}"
+      #     echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}"
 
 
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
         with:
         with:
@@ -259,7 +260,7 @@ jobs:
         - amd64
         - amd64
         - arm64
         - arm64
     # if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
     # if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
-    if: ${{ false }}
+    if: false
 
 
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3