Linux Build Release #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux Build Release | |
on: | |
workflow_dispatch: | |
inputs: | |
pkg_version: | |
description: 'Arbitrary release version' | |
required: false | |
default: '1.0.0' | |
pkg_arch: | |
description: 'Target package architecture (x64, ia32 or arm)' | |
required: true | |
default: 'x64' | |
node_version: | |
description: 'Node.js version' | |
required: true | |
default: '20' | |
# build_amd: | |
# description: 'Enable Asynchronous Module Definition (AMD)' | |
# type: boolean | |
# required: true | |
# default: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '${{github.event.inputs.node_version}}' | |
- name: Libraries | |
run: sudo apt update && sudo apt install build-essential libx11-dev libxkbfile-dev libsecret-1-dev libkrb5-dev python-is-python3 fakeroot rpm | |
# - name: Environment | |
# if: ${{github.event.inputs.build_amd == 'true'}} | |
# run: export VSCODE_BUILD_AMD='true' | |
- name: Dependencies | |
run: npm ci | |
- name: Packaging | |
run: npm run gulp vscode-linux-${{github.event.inputs.pkg_arch}}-min | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: VSCodius-Linux-${{github.event.inputs.pkg_arch}}-${{github.event.inputs.pkg_version}}-Release | |
path: '~/work/${{github.event.repository.name}}/VSCode-linux-${{github.event.inputs.pkg_arch}}' | |
overwrite: true | |
compression-level: 9 | |
if-no-files-found: error |