|
@@ -48,7 +48,8 @@ jobs:
|
|
run: ./check_cron_or_pr.sh
|
|
run: ./check_cron_or_pr.sh
|
|
|
|
|
|
dependencies:
|
|
dependencies:
|
|
- needs: check
|
|
|
|
|
|
+ needs:
|
|
|
|
+ - check
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
container:
|
|
image: ${{ matrix.image }}
|
|
image: ${{ matrix.image }}
|
|
@@ -104,9 +105,12 @@ jobs:
|
|
with:
|
|
with:
|
|
name: remote-dependencies-${{ matrix.vscode_arch }}
|
|
name: remote-dependencies-${{ matrix.vscode_arch }}
|
|
path: ./vscode/remote/node_modules
|
|
path: ./vscode/remote/node_modules
|
|
|
|
+ retention-days: ${{ needs.check.outputs.SHOULD_BUILD == 'yes' && 30 || 1 }}
|
|
|
|
|
|
build:
|
|
build:
|
|
- needs: dependencies
|
|
|
|
|
|
+ needs:
|
|
|
|
+ - check
|
|
|
|
+ - dependencies
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
container:
|
|
image: ${{ matrix.image }}
|
|
image: ${{ matrix.image }}
|
|
@@ -186,7 +190,7 @@ jobs:
|
|
with:
|
|
with:
|
|
name: remote-dependencies-${{ matrix.vscode_arch }}
|
|
name: remote-dependencies-${{ matrix.vscode_arch }}
|
|
path: .
|
|
path: .
|
|
- if: ${{ matrix.vscode_arch }} == 'x64'
|
|
|
|
|
|
+ if: env.SHOULD_BUILD == 'yes' && matrix.vscode_arch == 'x64'
|
|
|
|
|
|
- name: Build
|
|
- name: Build
|
|
env:
|
|
env:
|
|
@@ -214,7 +218,9 @@ jobs:
|
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
|
|
|
|
|
aur:
|
|
aur:
|
|
- needs: build
|
|
|
|
|
|
+ needs:
|
|
|
|
+ - check
|
|
|
|
+ - build
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
strategy:
|
|
fail-fast: false
|
|
fail-fast: false
|
|
@@ -240,7 +246,9 @@ jobs:
|
|
aur_email: ${{ secrets.AUR_EMAIL }}
|
|
aur_email: ${{ secrets.AUR_EMAIL }}
|
|
|
|
|
|
snap:
|
|
snap:
|
|
- needs: build
|
|
|
|
|
|
+ needs:
|
|
|
|
+ - check
|
|
|
|
+ - build
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
env:
|
|
APP_NAME: codium
|
|
APP_NAME: codium
|