mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
ci(linux): regroup checks [skip ci]
This commit is contained in:
30
.github/workflows/insider-linux.yml
vendored
30
.github/workflows/insider-linux.yml
vendored
@@ -55,6 +55,12 @@ jobs:
|
|||||||
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: ./check_cron_or_pr.sh
|
run: ./check_cron_or_pr.sh
|
||||||
|
|
||||||
|
- name: Check existing VSCodium tags/releases
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CHECK_ASSETS: 'no'
|
||||||
|
run: ./check_tags.sh
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
needs:
|
needs:
|
||||||
- check
|
- check
|
||||||
@@ -91,12 +97,6 @@ jobs:
|
|||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
- name: Check existing VSCodium tags/releases
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
CHECK_ASSETS: 'no'
|
|
||||||
run: ./check_tags.sh
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|
||||||
@@ -180,21 +180,21 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SHOULD_BUILD_REH: 'no'
|
SHOULD_BUILD_REH: 'no'
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true'
|
if: (env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes') || github.event.inputs.generate_assets == 'true'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||||
run: ./release.sh
|
run: ./release.sh
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Upload assets
|
- name: Upload assets
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -262,7 +262,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||||
run: ./release.sh
|
run: ./release.sh
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_BUILD_REH != 'no' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Upload assets
|
- name: Upload assets
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -274,6 +274,7 @@ jobs:
|
|||||||
|
|
||||||
aur:
|
aur:
|
||||||
needs:
|
needs:
|
||||||
|
- check
|
||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@@ -282,12 +283,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- package_name: vscodium-insiders-bin
|
- package_name: vscodium-insiders-bin
|
||||||
- package_name: vscodium-insiders
|
- package_name: vscodium-insiders
|
||||||
if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get version
|
- name: Get version
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }}
|
RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
|
||||||
run: echo "PACKAGE_VERSION=${RELEASE_VERSION/-*/}" >> "${GITHUB_ENV}"
|
run: echo "PACKAGE_VERSION=${RELEASE_VERSION/-*/}" >> "${GITHUB_ENV}"
|
||||||
|
|
||||||
- name: Publish ${{ matrix.package_name }}
|
- name: Publish ${{ matrix.package_name }}
|
||||||
@@ -301,17 +302,18 @@ jobs:
|
|||||||
|
|
||||||
snap:
|
snap:
|
||||||
needs:
|
needs:
|
||||||
|
- check
|
||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }}
|
RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
# if: needs.build.outputs.SHOULD_DEPLOY == 'yes'
|
# if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
|
||||||
if: false
|
if: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -6,12 +6,7 @@ set -e
|
|||||||
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
|
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
|
||||||
echo "It's a PR"
|
echo "It's a PR"
|
||||||
|
|
||||||
if [[ "${OS_NAME}" != "linux" || "${VSCODE_ARCH}" == "x64" ]]; then
|
|
||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
else
|
|
||||||
export SHOULD_BUILD="no"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export SHOULD_DEPLOY="no"
|
export SHOULD_DEPLOY="no"
|
||||||
elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
|
elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
|
||||||
echo "It's a Push"
|
echo "It's a Push"
|
||||||
|
|||||||
Reference in New Issue
Block a user