Skip to content

Commit 848016f

Browse files
committed
chore: test deb
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 101f218 commit 848016f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/canary-deb.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,28 @@ jobs:
4242
- name: Clean ubuntu runner workspace
4343
run: |
4444
rm -rf ${{ github.workspace }}/*
45+
- name: Install Finch deps
46+
run: |
47+
sudo apt-get update
48+
sudo apt install build-essential -y
49+
sudo apt install libseccomp-dev -y
50+
sudo apt install pkg-config -y
51+
sudo apt install zlib1g-dev -y
52+
- name: Add Finch APT Repository
53+
run: |
54+
# Detect system architecture
55+
ARCH=$(dpkg --print-architecture)
56+
echo "Detected architecture: $ARCH"
57+
58+
# Download and install GPG key
59+
curl -fsSL https://artifact.runfinch.com/deb/GPG_KEY.pub | sudo gpg --dearmor -o /usr/share/keyrings/runfinch-finch-archive-keyring.gpg
60+
61+
# Add repository with detected architecture
62+
echo "deb [signed-by=/usr/share/keyrings/runfinch-finch-archive-keyring.gpg arch=$ARCH] https://artifact.runfinch.com/deb noble main" | sudo tee /etc/apt/sources.list.d/runfinch-finch.list
63+
64+
# Update package lists
65+
sudo apt update
66+
4567
- name: Install Finch with APT
4668
run: |
4769
sudo apt install runfinch-finch -y
@@ -56,4 +78,4 @@ jobs:
5678
fi
5779
- name: Clean up environment
5880
run: |
59-
sudo apt remove runfinch-finch -y
81+
sudo apt remove runfinch-finch -y

cmd/finch/virtual_machine_settings_darwin_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestNewSettingsMCommand(t *testing.T) {
2626
assert.Equal(t, cmd.Name(), "settings")
2727
}
2828

29+
// testing the deb workflow
2930
func TestSettingsVMAction_runAdapter(t *testing.T) {
3031
t.Parallel()
3132

0 commit comments

Comments
 (0)