Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zengxs committed Nov 21, 2024
1 parent cf1f700 commit 6b3fcb7
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,14 @@ jobs:

cross-build-in-docker:
runs-on: ubuntu-latest
container:
image: golang:1.23.3
steps:
# Install Git for checking out the repository, otherwise the checkout action will
# download the repository by REST API. This will cause go build to fail because it
# will do some git operations.
- run: |
apt-get update -yq
apt-get install -yq git
- uses: actions/checkout@v4
- name: Build
run: |
go mod vendor
make all
docker run --rm -v $PWD:/build -w /build golang:1.23.3 make all
- name: Test
run: ./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
run: |
./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 6b3fcb7

Please sign in to comment.