diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c86359bb..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,48 +0,0 @@ -version: 2.1 - -jobs: - build: - machine: - image: ubuntu-2004:current - resource_class: arm.medium - steps: - - checkout - - - run: | - docker run -it --rm -v "$PWD":/work -w /work golang:1.20-bullseye bash -c 'CGO_ENABLED=0 go build -buildvcs=false -ldflags="-s -w"' - sudo mv go-vod go-vod-aarch64 - - - persist_to_workspace: - root: . - paths: - - go-vod-aarch64 - - publish-github-release: - docker: - - image: cimg/go:1.17 - steps: - - attach_workspace: - at: ./artifacts - - run: - name: "Publish Release on GitHub" - command: | - go get github.com/tcnksm/ghr - ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} ./artifacts/ - -workflows: - aarch64: - jobs: - - build: - filters: - branches: - ignore: /.*/ - tags: - only: /^.*/ - - publish-github-release: - requires: - - build - filters: - branches: - ignore: /.*/ - tags: - only: /^.*/ diff --git a/.github/workflows/amd64.yml b/.github/workflows/release.yml similarity index 55% rename from .github/workflows/amd64.yml rename to .github/workflows/release.yml index 98dfe89a..fad0484c 100644 --- a/.github/workflows/amd64.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: amd64 +name: release on: push: @@ -6,8 +6,8 @@ on: - "*" jobs: - build-amd64: - name: amd64 + build: + name: Build runs-on: ubuntu-latest container: @@ -18,13 +18,15 @@ jobs: uses: actions/checkout@v3 - name: Build - run: CGO_ENABLED=0 go build -buildvcs=false -ldflags="-s -w" + run: | + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-s -w" -o go-vod-amd64 + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -buildvcs=false -ldflags="-s -w" -o go-vod-arm64 - name: Upload to releases uses: svenstaro/upload-release-action@v2 id: attach_to_release with: - file: go-vod - asset_name: go-vod-amd64 + file: go-vod-* + file_glob: true tag: ${{ github.ref }} overwrite: true diff --git a/main.go b/main.go index 693717cb..02bae723 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "github.com/pulsejet/go-vod/go_vod" ) -const VERSION = "0.1.25" +const VERSION = "0.1.26" func main() { // Build initial configuration