File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 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+
67+ - name : Prepare clean environment for Finch
68+ run : |
69+ # Remove any existing container runtimes that might conflict
70+ sudo apt remove containerd containerd.io docker.io docker-ce docker-ce-cli runc -y || true
71+ sudo apt autoremove -y
72+
4573 - name : Install Finch with APT
4674 run : |
4775 sudo apt install runfinch-finch -y
5684 fi
5785 - name : Clean up environment
5886 run : |
59- sudo apt remove runfinch-finch -y
87+ sudo apt remove runfinch-finch -y
Original file line number Diff line number Diff 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
2930func TestSettingsVMAction_runAdapter (t * testing.T ) {
3031 t .Parallel ()
3132
You can’t perform that action at this time.
0 commit comments