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 6b3fcb7 commit 644d38f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,33 @@ jobs:
run: |
go mod vendor
make all
# check if the binary is working
- name: Test
run: ./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
run: |
case ${{ matrix.os }} in
ubuntu-latest)
./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
;;
macos-latest)
./dist/darwin/demo --database-url=sqlite://./test.sqlite3
;;
windows-latest)
./dist/windows-amd64/demo --database-url=sqlite://./test.sqlite3
;;
esac
cross-build-in-docker:
runs-on: ubuntu-latest
container:
image: golang:1.23.3
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: |
docker run --rm -v $PWD:/build -w /build golang:1.23.3 make all
go mod vendor
make all
- name: Test
run: |
./dist/linux-amd64/demo --database-url=sqlite://./test.sqlite3
Expand Down

0 comments on commit 644d38f

Please sign in to comment.