ci: share more env variables

This commit is contained in:
Baptiste Augrain 2022-10-24 15:00:38 +02:00
parent fc7019dc75
commit 34d56d0b52

View file

@ -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: env:
image: ${{ matrix.image }} MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
env: MS_TAG: ${{ needs.check.outputs.MS_TAG }}
MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }} RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
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: env:
image: ${{ matrix.image }} MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
env: MS_TAG: ${{ needs.check.outputs.MS_TAG }}
APP_NAME: VSCodium RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }} SHOULD_BUILD: ${{ needs.check.outputs.SHOULD_BUILD }}
MS_TAG: ${{ needs.check.outputs.MS_TAG }} SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
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 }}
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 # - name: Re-export env variables
run: | # run: |
echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}" # echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}"
echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${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