From 438710b71c42945e2cff256623aff0cd52757514 Mon Sep 17 00:00:00 2001 From: Hook25 Date: Thu, 31 Oct 2024 10:57:02 +0100 Subject: [PATCH] Actually try a series22 build --- .github/workflows/armhf_lxd.yaml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/armhf_lxd.yaml b/.github/workflows/armhf_lxd.yaml index f762831166..4b9ec7a0b5 100644 --- a/.github/workflows/armhf_lxd.yaml +++ b/.github/workflows/armhf_lxd.yaml @@ -9,6 +9,7 @@ jobs: # Run steps on a matrix of 4 arch/distro combinations steps: - uses: actions/checkout@v4 + fetch-depth: 0 - uses: uraimo/run-on-arch-action@v2 name: Build artifact id: build @@ -17,22 +18,14 @@ jobs: distro: ubuntu22.04 # Not required, but speeds up builds - githubToken: ${{ github.token }} - - # Create an artifacts directory - setup: | - mkdir -p "${PWD}/artifacts" + #githubToken: ${{ github.token }} # Mount the artifacts directory as /artifacts in the container dockerRunArgs: | - --volume "${PWD}/artifacts:/artifacts" - - # Pass some environment variables to the container - env: | # YAML, but pipe character is necessary - artifact_name: git-${{ matrix.distro }}_${{ matrix.arch }} + --volume "$GITHUB_WORKSPACE/checkbox:/checkbox" # The shell to run commands with in the container - shell: /bin/sh + shell: /bin/bash # Install some dependencies in the container. This speeds up builds if # you are also using githubToken. Any dependencies installed here will @@ -41,16 +34,21 @@ jobs: # publicly in your project's package repository, so it is vital that # no secrets are present in the container state or logs. install: | - apt-get update -q -y - apt-get install -q -y git + sudo snap install lxd snapcraft + sudo lxd init --auto # Produce a binary artifact and place it in the mounted volume run: | - cp $(which git) "/artifacts/${artifact_name}" - echo "Produced artifact at /artifacts/${artifact_name}" + cd /checkbox/checkbox-core-snap/ + ./prepare.sh series22 + cd series22 + sudo snapcraft --use-lxd - name: Show the artifact # Items placed in /artifacts in the container will be in # ${PWD}/artifacts on the host. run: | - ls -al "${PWD}/artifacts" + ls checkbox/checkbox-core-snap/series22 + + - uses: actions/upload-artifact@v4 + path: checkbox-core-snap/series22/*.snap