Skip to content

Commit 6b3fcb7

Browse files
committed
update
1 parent cf1f700 commit 6b3fcb7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,14 @@ jobs:
3737

3838
cross-build-in-docker:
3939
runs-on: ubuntu-latest
40-
container:
41-
image: golang:1.23.3
4240
steps:
43-
# Install Git for checking out the repository, otherwise the checkout action will
44-
# download the repository by REST API. This will cause go build to fail because it
45-
# will do some git operations.
46-
- run: |
47-
apt-get update -yq
48-
apt-get install -yq git
4941
- uses: actions/checkout@v4
5042
- name: Build
5143
run: |
52-
go mod vendor
53-
make all
44+
docker run --rm -v $PWD:/build -w /build golang:1.23.3 make all
5445
- name: Test
55-
run: ./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
46+
run: |
47+
./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
5648
- name: Upload Artifacts
5749
uses: actions/upload-artifact@v3
5850
with:

0 commit comments

Comments
 (0)