Skip to content

Commit

Permalink
Merge branch 'master' into insider
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Nov 5, 2024
2 parents d7e6fa1 + 6cb2291 commit aae1c62
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/insider-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes'

- name: Upload vscode artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vscode
path: ./vscode.tar.gz
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}
if: env.SHOULD_BUILD == 'yes'
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes'

- name: Download vscode artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vscode
if: env.SHOULD_BUILD == 'yes'
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'

- name: Upload assets
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bin-${{ matrix.vscode_arch }}
path: assets/
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}
if: env.DISABLED != 'yes'
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
if: env.DISABLED != 'yes'

- name: Download vscode artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vscode
if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
Expand Down Expand Up @@ -389,7 +389,7 @@ jobs:
if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}

Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes'

- name: Download vscode artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vscode
if: env.SHOULD_BUILD_REH != 'no' || github.event.inputs.generate_assets == 'true'
Expand Down Expand Up @@ -491,7 +491,7 @@ jobs:
if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && vars.DISABLE_INSIDER_SNAP != 'yes'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}

Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/stable-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes'

- name: Upload vscode artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vscode
path: ./vscode.tar.gz
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}
if: env.SHOULD_BUILD == 'yes'
Expand All @@ -208,7 +208,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes'

- name: Download vscode artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vscode
if: env.SHOULD_BUILD == 'yes'
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'

- name: Upload assets
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bin-${{ matrix.vscode_arch }}
path: assets/
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}
if: env.DISABLED != 'yes'
Expand Down Expand Up @@ -335,7 +335,7 @@ jobs:
if: env.DISABLED != 'yes'

- name: Download vscode artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vscode
if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
Expand Down Expand Up @@ -387,7 +387,7 @@ jobs:
if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}

Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
if: env.SHOULD_BUILD == 'yes'

- name: Download vscode artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: vscode
if: env.SHOULD_BUILD_REH != 'no' || github.event.inputs.generate_assets == 'true'
Expand Down Expand Up @@ -455,8 +455,8 @@ jobs:
include:
- package_name: vscodium
package_type: stable
- package_name: vscodium-git
package_type: rolling
# - package_name: vscodium-git
# package_type: rolling
if: needs.check.outputs.SHOULD_DEPLOY == 'yes'

steps:
Expand Down Expand Up @@ -486,7 +486,7 @@ jobs:
if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && vars.DISABLE_STABLE_SNAP != 'yes'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BRANCH }}

Expand All @@ -499,6 +499,7 @@ jobs:
env:
ARCHITECTURE: ${{ matrix.platform }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
SNAPCRAFT_STORE_CHANNEL: ${{ vars.SNAP_STORE_CHANNEL }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
run: ./stores/snapcraft/check_version.sh

Expand Down
4 changes: 2 additions & 2 deletions package_linux_reh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ if [[ "${SHOULD_BUILD_REH}" != "no" ]]; then
pushd "../vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}"

if [[ -f "../ripgrep_${VSCODE_PLATFORM}_${VSCODE_ARCH}.sh" ]]; then
exec "../ripgrep_${VSCODE_PLATFORM}_${VSCODE_ARCH}.sh"
bash "../ripgrep_${VSCODE_PLATFORM}_${VSCODE_ARCH}.sh"
fi

echo "Archiving REH"
Expand All @@ -173,7 +173,7 @@ if [[ "${SHOULD_BUILD_REH_WEB}" != "no" ]]; then
pushd "../vscode-reh-web-${VSCODE_PLATFORM}-${VSCODE_ARCH}"

if [[ -f "../ripgrep_${VSCODE_PLATFORM}_${VSCODE_ARCH}.sh" ]]; then
exec "../ripgrep_${VSCODE_PLATFORM}_${VSCODE_ARCH}.sh"
bash "../ripgrep_${VSCODE_PLATFORM}_${VSCODE_ARCH}.sh"
fi

echo "Archiving REH-web"
Expand Down
4 changes: 3 additions & 1 deletion stores/snapcraft/check_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ else
fi

if [[ "${VSCODE_QUALITY}" == "stable" ]]; then
CHANNEL="${SNAPCRAFT_STORE_CHANNEL:-stable}"

sudo snap install --channel stable --classic snapcraft

echo "Architecture: ${ARCHITECTURE}"

SNAP_VERSION=$( snapcraft list-revisions "${SNAP_NAME}" | grep -F "stable*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4 )
SNAP_VERSION=$( snapcraft list-revisions "${SNAP_NAME}" | grep -F "${CHANNEL}*" | grep "${ARCHITECTURE}" | tr -s ' ' | cut -d ' ' -f 4 )
echo "Snap version: ${SNAP_VERSION}"

if [[ -n "${SNAP_VERSION}" && "${SNAP_VERSION}" != "${RELEASE_VERSION}" ]]; then
Expand Down

0 comments on commit aae1c62

Please sign in to comment.