Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions .github/workflows/lxc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ jobs:
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
echo "deb [signed-by=/etc/apt/keyrings/zabbly.asc] https://pkgs.zabbly.com/incus/stable $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/zabbly-incus.list
sudo apt-get update
sudo apt-get install -y incus
sudo apt-get install -y incus=1:7.2* incus-client=1:7.2* incus-base=1:7.2*
incus --version

- name: Initialise Incus
run: |
Expand All @@ -86,6 +87,7 @@ jobs:
sudo sysctl -w fs.inotify.max_user_watches=65535
sudo incus admin init --auto
sudo chmod 666 /var/lib/incus/unix.socket
sudo chown -R $USER:$USER ~/.config/incus

- name: Set up Python
uses: actions/setup-python@v6
Expand All @@ -102,7 +104,7 @@ jobs:
uses: actions/cache@v5
with:
path: /tmp/incus-cache
key: incus-v4-${{ runner.os }}-${{ hashFiles('cmlxc/src/cmlxc/*.py') }}
key: incus-v5-${{ runner.os }}-${{ hashFiles('cmlxc/src/cmlxc/*.py') }}

- name: Import cached images
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
echo "deb [signed-by=/etc/apt/keyrings/zabbly.asc] https://pkgs.zabbly.com/incus/stable $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/zabbly-incus.list
sudo apt-get update
sudo apt-get install -y incus
sudo apt-get install -y incus=1:7.2* incus-client=1:7.2* incus-base=1:7.2*
incus --version

- name: Initialise Incus
run: |
Expand All @@ -40,6 +41,7 @@ jobs:
sudo incus admin init --auto
# Allow runner to access Incus without 'sg' or 'sudo'
sudo chmod 666 /var/lib/incus/unix.socket
sudo chown -R $USER:$USER ~/.config/incus

- name: Set up Python
uses: actions/setup-python@v6
Expand All @@ -58,9 +60,9 @@ jobs:
with:
path: |
/tmp/incus-cache
key: incus-images-v7-${{ runner.os }}-${{ hashFiles('cmlxc/src/cmlxc/incus.py') }}
key: incus-images-v8-${{ runner.os }}-${{ hashFiles('cmlxc/src/cmlxc/incus.py') }}
restore-keys: |
incus-images-v7-${{ runner.os }}-
incus-images-v8-${{ runner.os }}-

- name: Import cached images
run: |
Expand Down