scarthgap: narrow CI and LAYERSERIES_COMPAT to scarthgap-only #6
This file contains hidden or 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: ci | |
| on: | |
| push: | |
| branches: [scarthgap] | |
| 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: | |
| # poky-the-distro covers up to walnascar; whinlatter+ no longer | |
| # publish a poky combo repo and are handled by parse-oe-core below. | |
| name: parse (${{ matrix.poky_branch }} / ${{ matrix.machine }}) | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| poky_branch: [scarthgap] | |
| # MACHINE controls which Microsoft binary tarball the recipe | |
| # resolves to: | |
| # qemux86-64 -> linux-x64 | |
| # qemuarm64 -> linux-arm64 | |
| # qemuarm -> linux-armhf | |
| machine: [qemux86-64, qemuarm64, qemuarm] | |
| 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: Cache poky checkout | |
| uses: actions/cache@v4 | |
| with: | |
| path: poky | |
| key: poky-${{ matrix.poky_branch }}-v1 | |
| restore-keys: poky-${{ matrix.poky_branch }}- | |
| - name: Clone poky | |
| run: | | |
| if [ ! -d poky/.git ]; then | |
| git clone --depth 1 --branch ${{ matrix.poky_branch }} \ | |
| https://git.yoctoproject.org/poky poky | |
| else | |
| git -C poky fetch --depth 1 origin \ | |
| ${{ matrix.poky_branch }}:refs/remotes/origin/${{ matrix.poky_branch }} | |
| git -C poky checkout -B ${{ matrix.poky_branch }} \ | |
| refs/remotes/origin/${{ matrix.poky_branch }} | |
| fi | |
| - 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 poky | |
| 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 poky | |
| source oe-init-build-env build | |
| bitbake -c fetch vscode | |
| build: | |
| name: build vscode (scarthgap / 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 poky (scarthgap) | |
| run: git clone --depth 1 --branch scarthgap https://git.yoctoproject.org/poky poky | |
| - 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 |