diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3177927..5579d2f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '^1.18' + go-version: '^1.19' - uses: release-drafter/release-drafter@v5 id: create_release env: @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '^1.18' + go-version: '^1.19' cache: true - name: Build env: @@ -65,12 +65,12 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '^1.18' + go-version: '^1.19' cache: true - name: Build run: | go install src.techknowlogick.com/xgo@latest - xgo -go go-1.18.x --targets=darwin/arm64 -tags="nosqlite" -ldflags="-w -s" -buildmode=c-shared -pkg=bind/desktop -out=libgopeed . + xgo -go go-1.19.x --targets=darwin/arm64 -tags="nosqlite" -ldflags="-w -s" -buildmode=c-shared -pkg=bind/desktop -out=libgopeed . mv libgopeed-*.dylib libgopeed.dylib - uses: actions/upload-artifact@v3 with: @@ -84,7 +84,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '^1.18' + go-version: '^1.19' cache: true - uses: actions/setup-node@v3 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc906746..a1dc069c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: # steps: # - uses: actions/setup-go@v2 # with: -# go-version: '^1.18' +# go-version: '^1.19' # - uses: actions/checkout@v2 # - name: Lint Go Code # run: | @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '^1.18' + go-version: '^1.19' cache: true - name: Run Unit tests. run: go test ./... -v -covermode=count -coverprofile=coverage.txt @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '^1.18' + go-version: '^1.19' cache: true - name: Build run: go build github.com/monkeyWie/gopeed/cmd/gopeed \ No newline at end of file diff --git a/go.mod b/go.mod index 1b6f9d8a..2dd48f40 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/monkeyWie/gopeed -go 1.18 +go 1.19 require ( github.com/anacrolix/torrent v1.46.0