Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Factual0367 authored Sep 17, 2024
1 parent 4cdf46d commit e1e8c4a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ jobs:
with:
go-version: '1.20'

- name: Set up Docker
- name: Install Docker
run: |
sudo apt-get update
sudo apt-get install -y docker.io
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
sudo apt-get install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: Install fyne-cross
run: go install github.com/fyne-io/fyne-cross@latest
Expand All @@ -38,6 +42,9 @@ jobs:
- name: Build for Windows
run: fyne-cross windows --arch amd64

- name: Test
run: go test -v ./...

- name: Archive Linux binary
run: tar -czvf linux-amd64-binary.tar.gz -C fyne-cross/bin/linux-amd64 .

Expand Down

0 comments on commit e1e8c4a

Please sign in to comment.