Skip to content

vscode: compute S prefix in Python instead of UNPACKDIR=WORKDIR #17

vscode: compute S prefix in Python instead of UNPACKDIR=WORKDIR

vscode: compute S prefix in Python instead of UNPACKDIR=WORKDIR #17

Workflow file for this run

name: ci
on:
push:
branches: [whinlatter]
pull_request:
workflow_dispatch:
# Cancel superseded runs for the same ref to save CI minutes.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
parse-oe-core:
# whinlatter and wrynose dropped the combined poky repository, so
# we clone openembedded-core + bitbake separately.
name: parse (${{ matrix.release }} / ${{ matrix.machine }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
release: [whinlatter]
machine: [qemux86-64, qemuarm64, qemuarm]
include:
- release: whinlatter
bitbake: '2.16'
steps:
- uses: actions/checkout@v4
with:
path: meta-vscode
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
/opt/hostedtoolcache/CodeQL /usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY"
- name: Clone oe-core (${{ matrix.release }})
run: |
git clone --depth 1 --branch ${{ matrix.release }} \
https://git.openembedded.org/openembedded-core oe-core
- name: Clone bitbake (${{ matrix.bitbake }})
run: |
git clone --depth 1 --branch ${{ matrix.bitbake }} \
https://git.openembedded.org/bitbake oe-core/bitbake
- name: Install Yocto host dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool \
file locales libacl1
sudo locale-gen en_US.UTF-8
- name: Parse the layer (MACHINE=${{ matrix.machine }})
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd oe-core
source oe-init-build-env build
cat >> conf/local.conf <<EOF
MACHINE = "${{ matrix.machine }}"
BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
CONF_VERSION = "2"
EOF
bitbake-layers add-layer "$GITHUB_WORKSPACE/meta-vscode"
bitbake-layers show-layers
bitbake -p
- name: Fetch vscode (MACHINE=${{ matrix.machine }})
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd oe-core
source oe-init-build-env build
bitbake -c fetch vscode
# Build vscode end-to-end on the LTS we care most about today
# (scarthgap). This catches QA failures (libdir, file-rdeps, etc.)
# that bitbake -p doesn't run. Single arch (x86_64) for cost; the
# parse matrix above still proves the other arches' URLs resolve.
build:
name: build vscode (whinlatter / qemux86-64)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
path: meta-vscode
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
/opt/hostedtoolcache/CodeQL /usr/local/share/boost \
"$AGENT_TOOLSDIRECTORY"
- name: Clone oe-core (whinlatter)
run: |
git clone --depth 1 --branch whinlatter https://git.openembedded.org/openembedded-core poky
git clone --depth 1 --branch 2.16 https://git.openembedded.org/bitbake poky/bitbake
- name: Install Yocto host dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool \
file locales libacl1
sudo locale-gen en_US.UTF-8
- name: Build vscode
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
run: |
set -eo pipefail
cd poky
source oe-init-build-env build
cat >> conf/local.conf <<'EOF'
MACHINE = "qemux86-64"
BB_NUMBER_THREADS = "2"
PARALLEL_MAKE = "-j 2"
INHERIT += "rm_work"
CONF_VERSION = "2"
EOF
bitbake-layers add-layer "$GITHUB_WORKSPACE/meta-vscode"
bitbake vscode