From 4a5eac45bc74a5af2240acead9dc258d80055810 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Thu, 29 Feb 2024 22:24:14 +0100 Subject: [PATCH] build(linux): add alpine reh --- .github/workflows/stable-linux.yml | 72 +++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index 60f672f80ac..afd8692a54c 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -224,7 +224,7 @@ jobs: retention-days: 3 if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true' - reh: + reh_linux: needs: - check - compile @@ -294,6 +294,76 @@ jobs: retention-days: 3 if: env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true' + reh_alpine: + needs: + - check + - compile + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + include: + - vscode_arch: x64 + npm_arch: x64 + - vscode_arch: arm64 + npm_arch: arm64 + env: + BUILD_SOURCEVERSION: ${{ needs.compile.outputs.BUILD_SOURCEVERSION }} + 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 }} + VSCODE_ARCH: ${{ matrix.vscode_arch }} + if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true' + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ env.GITHUB_BRANCH }} + + - name: Install GH + run: ./install_gh.sh + if: env.SHOULD_DEPLOY == 'yes' + + - name: Check existing VSCodium tags/releases + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CHECK_ONLY_REH: 'yes' + run: ./check_tags.sh + + - name: Install libkrb5-dev + run: sudo apt-get install -y libkrb5-dev + if: env.SHOULD_BUILD == 'yes' + + - name: Download vscode artifact + uses: actions/download-artifact@v3 + with: + name: vscode + if: env.SHOULD_BUILD_REH != 'no' || github.event.inputs.generate_assets == 'true' + + - name: Build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + npm_config_arch: ${{ matrix.npm_arch }} + run: ./package_alpine_reh.sh + if: env.SHOULD_BUILD_REH != 'no' || github.event.inputs.generate_assets == 'true' + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }} + GITHUB_USERNAME: ${{ github.repository_owner }} + run: ./release.sh + if: env.SHOULD_BUILD_REH != 'no' && env.SHOULD_DEPLOY == 'yes' + + - name: Upload assets + uses: actions/upload-artifact@v4 + with: + name: reh-alpine-${{ matrix.vscode_arch }} + path: assets/ + retention-days: 3 + if: env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true' + aur: needs: - check