ci: don't store repositories (too long)

This commit is contained in:
Baptiste Augrain
2022-10-23 19:39:14 +02:00
parent e891b4a3dc
commit ad3016dabf

View File

@@ -23,8 +23,10 @@ jobs:
container: container:
image: vscodium/vscodium-linux-build-agent:bionic-x64 image: vscodium/vscodium-linux-build-agent:bionic-x64
env: env:
GITHUB_BRANCH: insider
VSCODE_QUALITY: insider VSCODE_QUALITY: insider
outputs: outputs:
GITHUB_BRANCH: ${{ env.GITHUB_BRANCH }}
MS_COMMIT: ${{ env.MS_COMMIT }} MS_COMMIT: ${{ env.MS_COMMIT }}
MS_TAG: ${{ env.MS_TAG }} MS_TAG: ${{ env.MS_TAG }}
RELEASE_VERSION: ${{ env.RELEASE_VERSION }} RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
@@ -35,7 +37,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: insider ref: ${{ env.GITHUB_BRANCH }}
- name: Clone VSCode repo - name: Clone VSCode repo
env: env:
@@ -45,19 +47,16 @@ jobs:
- name: Check PR or cron - name: Check PR or cron
run: ./check_cron_or_pr.sh run: ./check_cron_or_pr.sh
- name: Save repositories
uses: actions/upload-artifact@v3
with:
name: repositories
path: .
if: env.SHOULD_BUILD == 'yes' || env.SHOULD_DEPLOY == 'yes'
dependencies: dependencies:
needs: check needs: check
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ${{ matrix.image }} image: ${{ matrix.image }}
env: env:
GITHUB_BRANCH: ${{ needs.check.outputs.GITHUB_BRANCH }}
MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
MS_TAG: ${{ needs.check.outputs.MS_TAG }}
RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
VSCODE_QUALITY: ${{ needs.check.outputs.VSCODE_QUALITY }} VSCODE_QUALITY: ${{ needs.check.outputs.VSCODE_QUALITY }}
strategy: strategy:
fail-fast: false fail-fast: false
@@ -66,10 +65,17 @@ jobs:
- vscode_arch: x64 - vscode_arch: x64
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: ubuntu-latest image: ubuntu:20.04
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:
- uses: actions/checkout@v3
with:
ref: ${{ env.GITHUB_BRANCH }}
- name: Clone VSCode repo
run: ./get_repo.sh
- uses: docker/setup-qemu-action@v2 - uses: docker/setup-qemu-action@v2
if: matrix.vscode_arch == 'arm64' if: matrix.vscode_arch == 'arm64'
@@ -81,12 +87,6 @@ jobs:
- name: Install Yarn - name: Install Yarn
run: npm install -g yarn run: npm install -g yarn
- name: Restore repositories
uses: actions/download-artifact@v3
with:
name: repositories
path: .
- name: Install remote dependencies (x64) - name: Install remote dependencies (x64)
env: env:
npm_config_arch: x64 npm_config_arch: x64
@@ -113,6 +113,7 @@ jobs:
env: env:
APP_NAME: VSCodium APP_NAME: VSCodium
ASSETS_REPOSITORY: ${{ github.repository }}-insiders ASSETS_REPOSITORY: ${{ github.repository }}-insiders
GITHUB_BRANCH: ${{ needs.check.outputs.GITHUB_BRANCH }}
MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }} MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
MS_TAG: ${{ needs.check.outputs.MS_TAG }} MS_TAG: ${{ needs.check.outputs.MS_TAG }}
OS_NAME: linux OS_NAME: linux
@@ -138,6 +139,13 @@ jobs:
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:
- uses: actions/checkout@v3
with:
ref: ${{ env.GITHUB_BRANCH }}
- name: Clone VSCode repo
run: ./get_repo.sh
- name: Install GH - name: Install GH
run: ./install_gh.sh run: ./install_gh.sh
@@ -149,12 +157,6 @@ jobs:
- name: Install Yarn - name: Install Yarn
run: npm install -g yarn run: npm install -g yarn
- name: Restore repositories
uses: actions/download-artifact@v3
with:
name: repositories
path: .
- name: Check existing VSCodium tags/releases - name: Check existing VSCodium tags/releases
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}