Skip to content

Commit b84de5b

Browse files
ci: maybe actually remove linux
1 parent 43bec3b commit b84de5b

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

Diff for: .github/workflows/build.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
name: Build
12-
runs-on: ubuntu-latest
12+
runs-on: darwin-latest
1313
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1414
steps:
1515
- uses: actions/checkout@v4
@@ -19,9 +19,6 @@ jobs:
1919
with:
2020
go-version: ^1.22
2121

22-
- name: Get libasound2
23-
run: sudo apt-get install libasound2-dev
24-
2522
- name: Build
2623
run: go build -v ./...
2724

Diff for: .github/workflows/release.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@ jobs:
3838
- name: Determine Go version
3939
id: set_goversion
4040
run: |
41-
if [ "${{ matrix.goos }}" = "linux" ] && [ "${{ matrix.goarch }}" = "amd64" ]; then
42-
echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.linux-amd64.tar.gz"
43-
elif [ "${{ matrix.goos }}" = "darwin" ] && [ "${{ matrix.goarch }}" = "arm64" ]; then
41+
if [ "${{ matrix.goos }}" = "darwin" ] && [ "${{ matrix.goarch }}" = "arm64" ]; then
4442
echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.darwin-arm64.pkg"
45-
elif [ "${{ matrix.goos }}" = "linux" ] && [ "${{ matrix.goarch }}" = "arm64" ]; then
46-
echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.linux-arm64.tar.gz"
4743
elif [ "${{ matrix.goos }}" = "darwin" ] && [ "${{ matrix.goarch }}" = "amd64" ]; then
4844
echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.darwin-amd64.pkg"
4945
fi
@@ -57,14 +53,6 @@ jobs:
5753
goarch: [amd64, arm64]
5854
steps:
5955
- uses: actions/checkout@v4
60-
- name: Get libasound2
61-
run: |
62-
if [ "${{ matrix.goos }}" = "linux" ]; then
63-
sudo apt-get install libasound2-dev;
64-
fi
65-
- name: Enable CGO for Linux builds
66-
if: matrix.goos == 'linux'
67-
run: echo "CGO_ENABLED=1" >> $GITHUB_ENV
6856
- uses: wangyoucao577/go-release-action@v1
6957
with:
7058
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)