Skip to content

Add armv7 build #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 49 additions & 5 deletions .github/workflows/wkdev-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,51 @@ jobs:
podman rm ${CONTAINER} || true
rm -rf ${HOME}/${CONTAINER}-home

build_armv7:
runs-on: arm-bothost-2
steps:
- name: Set tag name
run: |
if [ "${GITHUB_BASE_REF}" = 'main' ]; then
echo "WKDEV_SDK_TAG=latest" >> "${GITHUB_ENV}"
fi
echo "WKDEV_SDK_CONTAINER_REGISTRY_USER_NAME=$(echo ${GITHUB_REPOSITORY_OWNER} | tr '[:upper:]' '[:lower:]')" >> "${GITHUB_ENV}"

- name: Install podman
run: sudo apt-get update && sudo apt-get -y install podman fuse-overlayfs

- name: Checkout repo
uses: actions/checkout@v4

- name: Build image
run: |
source ./register-sdk-on-host.sh
wkdev-sdk-bakery --mode=build --verbose --arch armhf
podman image list
wkdev-sdk-bakery --mode=export --verbose --arch armhf

- name: Archive image
uses: actions/upload-artifact@v4
with:
name: wkdev-sdk-armhf.tar
path: wkdev-sdk-armhf.tar
retention-days: 7

- name: Test image
run: |
CONTAINER="wkdev-$(date +%s)"
source ./register-sdk-on-host.sh
wkdev-create --create-home --home ${HOME}/${CONTAINER}-home --verbose --attach --no-pull --name ${CONTAINER} --arch armhf --shell /bin/bash
wkdev-enter -n ${CONTAINER} --exec -- git clone --depth=1 https://github.com/WebKit/WebKit.git
wkdev-enter -n ${CONTAINER} --exec -- ./WebKit/Tools/Scripts/build-webkit --wpe --release --generate-project-only
wkdev-enter -n ${CONTAINER} --exec -- ./WebKit/Tools/Scripts/build-webkit --gtk --release --generate-project-only
podman stop ${CONTAINER} || true
podman rm ${CONTAINER} || true
rm -rf ${HOME}/${CONTAINER}-home

deploy:
runs-on: [self-hosted, x64]
needs: [build_amd64, build_arm64]
needs: [build_amd64, build_arm64, build_armv7]
if: github.ref_name == 'main' || startsWith(github.ref_name, 'tag/')
steps:
- name: Set tag name
Expand All @@ -122,12 +164,14 @@ jobs:

- name: Deploy image
run: |
podman rmi -f wkdev-sdk:latest || true
podman manifest rm wkdev-sdk:latest || true
podman rmi -f wkdev-sdk:latest_amd64 || true
podman rmi -f wkdev-sdk:latest_arm64 || true
podman rmi ghcr.io/${GITHUB_REPOSITORY_OWNER}/wkdev-sdk:latest | true
podman manifest rm ghcr.io/${GITHUB_REPOSITORY_OWNER}/wkdev-sdk:latest | true
podman rmi ghcr.io/${GITHUB_REPOSITORY_OWNER}/wkdev-sdk:latest_arm64 | true
podman rmi ghcr.io/${GITHUB_REPOSITORY_OWNER}/wkdev-sdk:latest_amd64 | true
podman rmi ghcr.io/${GITHUB_REPOSITORY_OWNER}/wkdev-sdk:latest_armhf | true
podman load < ./wkdev-sdk-amd64.tar
podman load < ./wkdev-sdk-arm64.tar
podman load < ./wkdev-sdk-armhf.tar
podman image list
echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io --username=${GITHUB_REPOSITORY_OWNER} --password-stdin
source ./register-sdk-on-host.sh
Expand Down
Loading