Skip to content

Commit

Permalink
Actually try a series22 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Oct 31, 2024
1 parent aa732f9 commit 438710b
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/armhf_lxd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 438710b

Please sign in to comment.