22
33on :
44 push :
5- branches : [main, master ]
5+ branches : [whinlatter ]
66 pull_request :
77 workflow_dispatch :
88
@@ -12,89 +12,6 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15- parse :
16- # poky-the-distro covers up to walnascar; whinlatter+ no longer
17- # publish a poky combo repo and are handled by parse-oe-core below.
18- name : parse (${{ matrix.poky_branch }} / ${{ matrix.machine }})
19- runs-on : ubuntu-22.04
20- strategy :
21- fail-fast : false
22- matrix :
23- poky_branch : [kirkstone, scarthgap, styhead, walnascar]
24- # MACHINE controls which Microsoft binary tarball the recipe
25- # resolves to:
26- # qemux86-64 -> linux-x64
27- # qemuarm64 -> linux-arm64
28- # qemuarm -> linux-armhf
29- machine : [qemux86-64, qemuarm64, qemuarm]
30- steps :
31- - uses : actions/checkout@v4
32- with :
33- path : meta-vscode
34-
35- - name : Free disk space
36- run : |
37- sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
38- /opt/hostedtoolcache/CodeQL /usr/local/share/boost \
39- "$AGENT_TOOLSDIRECTORY"
40-
41- - name : Cache poky checkout
42- uses : actions/cache@v4
43- with :
44- path : poky
45- key : poky-${{ matrix.poky_branch }}-v1
46- restore-keys : poky-${{ matrix.poky_branch }}-
47-
48- - name : Clone poky
49- run : |
50- if [ ! -d poky/.git ]; then
51- git clone --depth 1 --branch ${{ matrix.poky_branch }} \
52- https://git.yoctoproject.org/poky poky
53- else
54- git -C poky fetch --depth 1 origin \
55- ${{ matrix.poky_branch }}:refs/remotes/origin/${{ matrix.poky_branch }}
56- git -C poky checkout -B ${{ matrix.poky_branch }} \
57- refs/remotes/origin/${{ matrix.poky_branch }}
58- fi
59-
60- - name : Install Yocto host dependencies
61- run : |
62- sudo apt-get update
63- sudo apt-get install -y --no-install-recommends \
64- gawk wget git diffstat unzip texinfo gcc build-essential chrpath \
65- socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
66- iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool \
67- file locales libacl1
68- sudo locale-gen en_US.UTF-8
69-
70- - name : Parse the layer (MACHINE=${{ matrix.machine }})
71- env :
72- LANG : en_US.UTF-8
73- LC_ALL : en_US.UTF-8
74- run : |
75- set -eo pipefail
76- cd poky
77- source oe-init-build-env build
78- cat >> conf/local.conf <<EOF
79- MACHINE = "${{ matrix.machine }}"
80- BB_NUMBER_THREADS = "2"
81- PARALLEL_MAKE = "-j 2"
82- CONF_VERSION = "2"
83- EOF
84- bitbake-layers add-layer "$GITHUB_WORKSPACE/meta-vscode"
85- bitbake-layers show-layers
86- bitbake -p
87-
88- - name : Fetch vscode (MACHINE=${{ matrix.machine }})
89- env :
90- LANG : en_US.UTF-8
91- LC_ALL : en_US.UTF-8
92- run : |
93- set -eo pipefail
94- cd poky
95- source oe-init-build-env build
96- bitbake -c fetch vscode
97-
9815 parse-oe-core :
9916 # whinlatter and wrynose dropped the combined poky repository, so
10017 # we clone openembedded-core + bitbake separately.
@@ -103,17 +20,11 @@ jobs:
10320 strategy :
10421 fail-fast : false
10522 matrix :
106- release : [whinlatter, wrynose ]
23+ release : [whinlatter]
10724 machine : [qemux86-64, qemuarm64, qemuarm]
108- # include adds the bitbake-version axis as a value-mapping
109- # against an existing matrix axis (release); GHA pairs the
110- # extra key (bitbake) with each existing combo that shares the
111- # release value.
11225 include :
11326 - release : whinlatter
11427 bitbake : ' 2.16'
115- - release : wrynose
116- bitbake : ' 2.18'
11728 steps :
11829 - uses : actions/checkout@v4
11930 with :
17889 # that bitbake -p doesn't run. Single arch (x86_64) for cost; the
17990 # parse matrix above still proves the other arches' URLs resolve.
18091 build :
181- name : build vscode (scarthgap / qemux86-64)
92+ name : build vscode (whinlatter / qemux86-64)
18293 runs-on : ubuntu-22.04
18394 steps :
18495 - uses : actions/checkout@v4
@@ -191,8 +102,10 @@ jobs:
191102 /opt/hostedtoolcache/CodeQL /usr/local/share/boost \
192103 "$AGENT_TOOLSDIRECTORY"
193104
194- - name : Clone poky (scarthgap)
195- run : git clone --depth 1 --branch scarthgap https://git.yoctoproject.org/poky poky
105+ - name : Clone oe-core (whinlatter)
106+ run : |
107+ git clone --depth 1 --branch whinlatter https://git.openembedded.org/openembedded-core poky
108+ git clone --depth 1 --branch 2.16 https://git.openembedded.org/bitbake poky/bitbake
196109
197110 - name : Install Yocto host dependencies
198111 run : |
0 commit comments