|
1 | | -name: Build |
| 1 | +name: build |
2 | 2 |
|
3 | | -on: [push] |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + workflow_dispatch: |
4 | 7 |
|
5 | 8 | jobs: |
| 9 | + yocto-aarch64: |
| 10 | + runs-on: ubuntu-24.04 |
| 11 | + container: |
| 12 | + steps: |
| 13 | + - name: Packages |
| 14 | + run: | |
| 15 | + sudo apt-get update |
| 16 | + sudo apt install -y build-essential chrpath cpio debianutils diffstat file gawk gcc git iputils-ping libacl1 liblz4-tool locales python3 python3-git python3-jinja2 python3-pexpect python3-pip python3-subunit socat texinfo unzip wget xz-utils zstd |
| 17 | + echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns |
| 18 | + - name: Checkout Poky |
| 19 | + uses: actions/checkout@v4 |
| 20 | + with: |
| 21 | + repository: yoctoproject/poky |
| 22 | + path: poky |
| 23 | + ref: scarthgap |
| 24 | + fetch_depth: 0 |
| 25 | + - name: Checkout Swift layer |
| 26 | + uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + path: poky/meta-swift |
| 29 | + fetch_depth: 0 |
| 30 | + - name: Build |
| 31 | + run: | |
| 32 | + cd $GITHUB_WORKSPACE/poky |
| 33 | + source oe-init-build-env |
| 34 | + bitbake-layers add-layer ../meta-swift |
| 35 | + rm -f conf/local.conf |
| 36 | + echo 'MACHINE = "qemuarm64"' > conf/local.conf |
| 37 | + echo 'INHERIT += "rm_work"' >> conf/local.conf |
| 38 | + bitbake swift-hello-world |
6 | 39 |
|
7 | | - build: |
8 | | - name: Build |
9 | | - runs-on: ubuntu-latest |
10 | | - container: colemancda/meta-swift |
11 | | - strategy: |
12 | | - matrix: |
13 | | - machine: [beaglebone-yocto, qemuarm64] |
14 | | - steps: |
15 | | - - name: Checkout |
16 | | - uses: actions/checkout@v3 |
17 | | - - name: Build |
18 | | - run: | |
19 | | - export SRC_ROOT=$GITHUB_WORKSPACE |
20 | | - export POKY_DIR=/tmp/poky |
21 | | - export MACHINE=${{ matrix.machine }} |
22 | | - cd /tmp/ |
23 | | - git clone --branch dunfell-23.0.20-cmake-3.22.3 https://github.com/MillerTechnologyPeru/poky.git |
24 | | - cd $SRC_ROOT |
25 | | - ./build.sh |
| 40 | + yocto-armv7: |
| 41 | + runs-on: ubuntu-24.04 |
| 42 | + container: |
| 43 | + steps: |
| 44 | + - name: Packages |
| 45 | + run: | |
| 46 | + sudo apt-get update |
| 47 | + sudo apt install -y build-essential chrpath cpio debianutils diffstat file gawk gcc git iputils-ping libacl1 liblz4-tool locales python3 python3-git python3-jinja2 python3-pexpect python3-pip python3-subunit socat texinfo unzip wget xz-utils zstd |
| 48 | + echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns |
| 49 | + - name: Checkout Poky |
| 50 | + uses: actions/checkout@v4 |
| 51 | + with: |
| 52 | + repository: yoctoproject/poky |
| 53 | + path: poky |
| 54 | + ref: scarthgap |
| 55 | + fetch_depth: 0 |
| 56 | + - name: Checkout Swift layer |
| 57 | + uses: actions/checkout@v4 |
| 58 | + with: |
| 59 | + path: poky/meta-swift |
| 60 | + fetch_depth: 0 |
| 61 | + - name: Build |
| 62 | + run: | |
| 63 | + cd $GITHUB_WORKSPACE/poky |
| 64 | + source oe-init-build-env |
| 65 | + bitbake-layers add-layer ../meta-swift |
| 66 | + rm -f conf/local.conf |
| 67 | + echo 'MACHINE = "qemuarm"' > conf/local.conf |
| 68 | + echo 'INHERIT += "rm_work"' >> conf/local.conf |
| 69 | + bitbake swift-hello-world |
| 70 | +
|
| 71 | + yocto-x86_64: |
| 72 | + runs-on: ubuntu-24.04 |
| 73 | + container: |
| 74 | + steps: |
| 75 | + - name: Packages |
| 76 | + run: | |
| 77 | + sudo apt-get update |
| 78 | + sudo apt install -y build-essential chrpath cpio debianutils diffstat file gawk gcc git iputils-ping libacl1 liblz4-tool locales python3 python3-git python3-jinja2 python3-pexpect python3-pip python3-subunit socat texinfo unzip wget xz-utils zstd |
| 79 | + echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns |
| 80 | + - name: Checkout Poky |
| 81 | + uses: actions/checkout@v4 |
| 82 | + with: |
| 83 | + repository: yoctoproject/poky |
| 84 | + path: poky |
| 85 | + ref: scarthgap |
| 86 | + fetch_depth: 0 |
| 87 | + - name: Checkout Swift layer |
| 88 | + uses: actions/checkout@v4 |
| 89 | + with: |
| 90 | + path: poky/meta-swift |
| 91 | + fetch_depth: 0 |
| 92 | + - name: Build |
| 93 | + run: | |
| 94 | + cd $GITHUB_WORKSPACE/poky |
| 95 | + source oe-init-build-env |
| 96 | + bitbake-layers add-layer ../meta-swift |
| 97 | + rm -f conf/local.conf |
| 98 | + echo 'MACHINE = "qemux86-64"' > conf/local.conf |
| 99 | + echo 'INHERIT += "rm_work"' >> conf/local.conf |
| 100 | + bitbake swift-hello-world |
0 commit comments