From 354f56a6fa983813becf9fca902f4b2635f8beb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:24:15 +0300 Subject: [PATCH 01/29] Create go.yml --- .github/workflows/go.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..e2eb87d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,18 @@ +name: Go + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Build + run: env GOOS=linux GOARCH=386 go build -v -o bin/neoray_linux_386 ./../../src From 4511a2cbceaaf927febc44d75dd0d7f320199c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:26:28 +0300 Subject: [PATCH 02/29] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e2eb87d..4e4fe69 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,4 +15,4 @@ jobs: go-version: 1.16 - name: Build - run: env GOOS=linux GOARCH=386 go build -v -o bin/neoray_linux_386 ./../../src + run: env GOOS=linux GOARCH=386 go build -v -o bin/neoray_linux_386 ./src From f866c8778606c8938102c6366d89e375c6aa8cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:35:42 +0300 Subject: [PATCH 03/29] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4e4fe69..4351124 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,4 +15,4 @@ jobs: go-version: 1.16 - name: Build - run: env GOOS=linux GOARCH=386 go build -v -o bin/neoray_linux_386 ./src + run: env CGO_ENABLED=1 GOOS=linux GOARCH=386 go build -v -o bin/neoray_linux_386 ./src From a3559c3481ba67e5bad9665a7b7f4198b53a49c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:41:21 +0300 Subject: [PATCH 04/29] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4351124..68aae06 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,4 +15,4 @@ jobs: go-version: 1.16 - name: Build - run: env CGO_ENABLED=1 GOOS=linux GOARCH=386 go build -v -o bin/neoray_linux_386 ./src + run: env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o bin/neoray_linux_amd64 ./src From cb6c1e4300cfebed205e30b6b8823c99fd1724be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:49:06 +0300 Subject: [PATCH 05/29] Update and rename go.yml to release.yml --- .github/workflows/{go.yml => release.yml} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename .github/workflows/{go.yml => release.yml} (55%) diff --git a/.github/workflows/go.yml b/.github/workflows/release.yml similarity index 55% rename from .github/workflows/go.yml rename to .github/workflows/release.yml index 68aae06..223cdf7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -15,4 +15,6 @@ jobs: go-version: 1.16 - name: Build - run: env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o bin/neoray_linux_amd64 ./src + run: set CGO_ENABLED=1 + run: set GOARCH=amd64 + run: go build -v -ldflags -H=windowsgui -o bin/neoray_win_amd64.exe ./src From 42aad9d078a5af4338cc1ecf18989c21dfcb3ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:50:50 +0300 Subject: [PATCH 06/29] Update release.yml --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 223cdf7..36f9f61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Go +name: Release on: workflow_dispatch: @@ -15,6 +15,4 @@ jobs: go-version: 1.16 - name: Build - run: set CGO_ENABLED=1 - run: set GOARCH=amd64 - run: go build -v -ldflags -H=windowsgui -o bin/neoray_win_amd64.exe ./src + run: set CGO_ENABLED=1 & set GOARCH=amd64 & go build -v -ldflags -H=windowsgui -o bin/neoray_win_amd64.exe ./src From 47201d2631f41d1d794d1671d6a16c05d0d0f951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 14:05:29 +0300 Subject: [PATCH 07/29] Update release.yml --- .github/workflows/release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36f9f61..81e77a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: jobs: - build: + build-windows: runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -14,5 +14,14 @@ jobs: with: go-version: 1.16 - - name: Build - run: set CGO_ENABLED=1 & set GOARCH=amd64 & go build -v -ldflags -H=windowsgui -o bin/neoray_win_amd64.exe ./src + - name: Build amd64 + env: + CGO_ENABLED: 1 + GOARCH: amd64 + run: go build -v -ldflags -H=windowsgui -o bin/neoray_win_amd64.exe ./src + + - name: Build 386 + env: + CGO_ENABLED: 1 + GOARCH: 386 + run: go build -v -ldflags -H=windowsgui -o bin/neoray_win_386.exe ./src From bfc78729fc6d147c8554fce2b8d2c5e55150c05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 15:22:30 +0300 Subject: [PATCH 08/29] Update release.yml --- .github/workflows/release.yml | 54 +++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81e77a6..b5cdf4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,61 @@ jobs: - name: Build amd64 env: CGO_ENABLED: 1 + GOOS: windows GOARCH: amd64 - run: go build -v -ldflags -H=windowsgui -o bin/neoray_win_amd64.exe ./src + run: go build -ldflags -H=windowsgui -o bin/neoray_windows_amd64.exe ./src - name: Build 386 env: CGO_ENABLED: 1 + GOOS: windows GOARCH: 386 - run: go build -v -ldflags -H=windowsgui -o bin/neoray_win_386.exe ./src + run: go build -ldflags -H=windowsgui -o bin/neoray_windows_386.exe ./src + + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Build amd64 + env: + CGO_ENABLED: 1 + GOOS: darwin + GOARCH: amd64 + run: go build -o bin/neoray_darwin_amd64 ./src + + - name: Build 386 + env: + CGO_ENABLED: 1 + GOOS: darwin + GOARCH: 386 + run: go build -o bin/neoray_darwin_386 ./src + + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Build amd64 + env: + CGO_ENABLED: 1 + GOOS: linux + GOARCH: amd64 + run: go build -o bin/neoray_linux_amd64 ./src + + - name: Build 386 + env: + CGO_ENABLED: 1 + GOOS: linux + GOARCH: 386 + run: go build -o bin/neoray_linux_386 ./src From 2177fe539b973d79a0fee4db06b2356bc4e35231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 15:51:36 +0300 Subject: [PATCH 09/29] Create xgorelease.yml --- .github/workflows/xgorelease.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/xgorelease.yml diff --git a/.github/workflows/xgorelease.yml b/.github/workflows/xgorelease.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/xgorelease.yml @@ -0,0 +1 @@ + From d2420c3d74a93bbd100c0d795a40e9def697ba1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 15:51:53 +0300 Subject: [PATCH 10/29] Delete xgorelease.yml --- .github/workflows/xgorelease.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/workflows/xgorelease.yml diff --git a/.github/workflows/xgorelease.yml b/.github/workflows/xgorelease.yml deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/xgorelease.yml +++ /dev/null @@ -1 +0,0 @@ - From d8bc21900818c417f69eb253c1e46148eacac131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 15:59:39 +0300 Subject: [PATCH 11/29] Create xgo_release.yml --- .github/workflows/xgo_release.yml | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/xgo_release.yml diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml new file mode 100644 index 0000000..303ee3a --- /dev/null +++ b/.github/workflows/xgo_release.yml @@ -0,0 +1,47 @@ +name: CI + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Golang CGO cross compiler + # You may pin to the exact commit or the version. + # uses: crazy-max/ghaction-xgo@0bf105240c754748ecfb954a003a7e2ad8518a4b + uses: crazy-max/ghaction-xgo@v1.6.1 + with: + # xgo version + #xgo_version: # optional, default is latest + # Go release to use for cross compilation + #go_version: # optional, default is latest + # Destination folder to put binaries in + dest: bin # optional, default is build + # Sub-package to build if not root import + #pkg: # optional + # Prefix to use for output naming. Default to package name + #prefix: # optional + # Comma separated targets to build for. Example: windows/amd64,linux/386 + targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64 # optional, default is */* + # Prints the names of packages as they are compiled + #v: # optional, default is false + # Prints the build commands as compilation progresses + x: true # optional, default is false + # Enable data race detection (supported only on amd64) + #race: # optional, default is false + # Comma separated list of build tags to consider satisfied during the build + #tags: # optional + # Arguments to pass on each go tool link invocation + #ldflags: # optional + # Indicates which kind of object file to build + #buildmode: # optional, default is default + # Working directory + #working_dir: # optional + # Use custom docker repo instead of official distribution + #docker-repo: # optional, default is ghcr.io/crazy-max/xgo + + - name: print executables + run: cd bin & ls -A -l -h --color=auto From b55b143d5c26892e7a0db24ffac2e00383f04287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:03:26 +0300 Subject: [PATCH 12/29] Update xgo_release.yml --- .github/workflows/xgo_release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml index 303ee3a..7dd0dff 100644 --- a/.github/workflows/xgo_release.yml +++ b/.github/workflows/xgo_release.yml @@ -44,4 +44,6 @@ jobs: #docker-repo: # optional, default is ghcr.io/crazy-max/xgo - name: print executables - run: cd bin & ls -A -l -h --color=auto + run: | + cd bin + ls -A -l -h --color=auto From 653ad4d8b9f61cb5ad6455d218a68abb550ffd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:03:39 +0300 Subject: [PATCH 13/29] Update xgo_release.yml --- .github/workflows/xgo_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml index 7dd0dff..bb18436 100644 --- a/.github/workflows/xgo_release.yml +++ b/.github/workflows/xgo_release.yml @@ -1,4 +1,4 @@ -name: CI +name: Release xgo on: workflow_dispatch: From 75534dbb06d3fe947762d6826bfd5b4555d2d656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 17:49:58 +0300 Subject: [PATCH 14/29] Update xgo_release.yml --- .github/workflows/xgo_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml index bb18436..8f7171b 100644 --- a/.github/workflows/xgo_release.yml +++ b/.github/workflows/xgo_release.yml @@ -21,7 +21,7 @@ jobs: # Destination folder to put binaries in dest: bin # optional, default is build # Sub-package to build if not root import - #pkg: # optional + pkg: src # Prefix to use for output naming. Default to package name #prefix: # optional # Comma separated targets to build for. Example: windows/amd64,linux/386 From 058a216b4cbb40a3e90a2ed5721c1809253d5e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 18:03:50 +0300 Subject: [PATCH 15/29] Update xgo_release.yml --- .github/workflows/xgo_release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml index 8f7171b..ef59bd7 100644 --- a/.github/workflows/xgo_release.yml +++ b/.github/workflows/xgo_release.yml @@ -17,7 +17,7 @@ jobs: # xgo version #xgo_version: # optional, default is latest # Go release to use for cross compilation - #go_version: # optional, default is latest + go_version: 1.16 # optional, default is latest # Destination folder to put binaries in dest: bin # optional, default is build # Sub-package to build if not root import @@ -29,7 +29,7 @@ jobs: # Prints the names of packages as they are compiled #v: # optional, default is false # Prints the build commands as compilation progresses - x: true # optional, default is false + #x: # optional, default is false # Enable data race detection (supported only on amd64) #race: # optional, default is false # Comma separated list of build tags to consider satisfied during the build @@ -45,5 +45,4 @@ jobs: - name: print executables run: | - cd bin - ls -A -l -h --color=auto + ls -A -R -l -h --color=auto From 368177c1aeee638ed55976cdea9c2f8719c7b201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Tue, 17 Aug 2021 18:06:30 +0300 Subject: [PATCH 16/29] Update xgo_release.yml --- .github/workflows/xgo_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml index ef59bd7..0cc955c 100644 --- a/.github/workflows/xgo_release.yml +++ b/.github/workflows/xgo_release.yml @@ -17,7 +17,7 @@ jobs: # xgo version #xgo_version: # optional, default is latest # Go release to use for cross compilation - go_version: 1.16 # optional, default is latest + go_version: 1.16.6 # optional, default is latest # Destination folder to put binaries in dest: bin # optional, default is build # Sub-package to build if not root import From 72d06a5945480909fb8df6c0695c27e1f411041b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 17:39:49 +0300 Subject: [PATCH 17/29] Delete xgo_release.yml --- .github/workflows/xgo_release.yml | 48 ------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/xgo_release.yml diff --git a/.github/workflows/xgo_release.yml b/.github/workflows/xgo_release.yml deleted file mode 100644 index 0cc955c..0000000 --- a/.github/workflows/xgo_release.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Release xgo - -on: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Golang CGO cross compiler - # You may pin to the exact commit or the version. - # uses: crazy-max/ghaction-xgo@0bf105240c754748ecfb954a003a7e2ad8518a4b - uses: crazy-max/ghaction-xgo@v1.6.1 - with: - # xgo version - #xgo_version: # optional, default is latest - # Go release to use for cross compilation - go_version: 1.16.6 # optional, default is latest - # Destination folder to put binaries in - dest: bin # optional, default is build - # Sub-package to build if not root import - pkg: src - # Prefix to use for output naming. Default to package name - #prefix: # optional - # Comma separated targets to build for. Example: windows/amd64,linux/386 - targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64 # optional, default is */* - # Prints the names of packages as they are compiled - #v: # optional, default is false - # Prints the build commands as compilation progresses - #x: # optional, default is false - # Enable data race detection (supported only on amd64) - #race: # optional, default is false - # Comma separated list of build tags to consider satisfied during the build - #tags: # optional - # Arguments to pass on each go tool link invocation - #ldflags: # optional - # Indicates which kind of object file to build - #buildmode: # optional, default is default - # Working directory - #working_dir: # optional - # Use custom docker repo instead of official distribution - #docker-repo: # optional, default is ghcr.io/crazy-max/xgo - - - name: print executables - run: | - ls -A -R -l -h --color=auto From 052ba57f86a4252f5dbe67824019aaa5fa26da45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 17:57:25 +0300 Subject: [PATCH 18/29] Update release.yml --- .github/workflows/release.yml | 66 ++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5cdf4e..5bea7b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,14 +19,23 @@ jobs: CGO_ENABLED: 1 GOOS: windows GOARCH: amd64 - run: go build -ldflags -H=windowsgui -o bin/neoray_windows_amd64.exe ./src + run: go build -ldflags -H=windowsgui -o bin/neoray-windows-amd64.exe ./src - name: Build 386 env: CGO_ENABLED: 1 GOOS: windows GOARCH: 386 - run: go build -ldflags -H=windowsgui -o bin/neoray_windows_386.exe ./src + run: go build -ldflags -H=windowsgui -o bin/neoray-windows-386.exe ./src + + - name: Upload binaries + uses: actions/upload-artifact@v2 + if: success() + with: + name: windows-binaries + path: | + bin/neoray-windows-amd64.exe + bin/neoray-windows-386.exe build-macos: runs-on: macos-latest @@ -43,15 +52,16 @@ jobs: CGO_ENABLED: 1 GOOS: darwin GOARCH: amd64 - run: go build -o bin/neoray_darwin_amd64 ./src + run: go build -o bin/neoray-macos ./src - - name: Build 386 - env: - CGO_ENABLED: 1 - GOOS: darwin - GOARCH: 386 - run: go build -o bin/neoray_darwin_386 ./src - + - name: Upload binaries + uses: actions/upload-artifact@v2 + if: success() + with: + name: macos-binaries + path: | + bin/neoray-macos + build-linux: runs-on: ubuntu-latest steps: @@ -67,11 +77,43 @@ jobs: CGO_ENABLED: 1 GOOS: linux GOARCH: amd64 - run: go build -o bin/neoray_linux_amd64 ./src + run: go build -o bin/neoray-linux-amd64 ./src - name: Build 386 env: CGO_ENABLED: 1 GOOS: linux GOARCH: 386 - run: go build -o bin/neoray_linux_386 ./src + run: go build -o bin/neoray-linux-386 ./src + + - name: Upload binaries + uses: actions/upload-artifact@v2 + if: success() + with: + name: linux-binaries + path: | + bin/neoray-linux-amd64 + bin/neoray-linux-386 + + release: + runs-on: ubuntu-latest + needs: [build-windows, build-macos, build-linux] + if: success() + steps: + - name: Download binaries + uses: actions/download-artifact@v2 + + - name: Deploy latest release + uses: "marvinpinto/action-automatic-releases@latest" + if: success() + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: false + title: "Latest release" + files: | + bin/neoray-windows-amd64.exe + bin/neoray-windows-386.exe + bin/neoray-macos + bin/neoray-linux-amd64 + bin/neoray-linux-386 From 086bf9f5eeea799c6791af4b2630449d57a5c42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:21:56 +0300 Subject: [PATCH 19/29] Update release.yml --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bea7b3..cc86fd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,11 @@ jobs: GOOS: windows GOARCH: amd64 run: go build -ldflags -H=windowsgui -o bin/neoray-windows-amd64.exe ./src + + - name: Set up MinGW x86 + uses: egor-tensin/setup-mingw@v2 + with: + platform: x86 - name: Build 386 env: @@ -72,6 +77,9 @@ jobs: with: go-version: 1.16 + - name: Set up required libs + run: sudo apt install libx11-dev libgtk-3-dev + - name: Build amd64 env: CGO_ENABLED: 1 From 9e61ed8819ba88fded9c322c68a83a6dcb961d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:35:24 +0300 Subject: [PATCH 20/29] Update release.yml --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc86fd5..a3acb31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,7 +78,9 @@ jobs: go-version: 1.16 - name: Set up required libs - run: sudo apt install libx11-dev libgtk-3-dev + run: | + sudo apt update + sudo apt install libx11-dev libgtk-3-dev - name: Build amd64 env: From 86ad8224d90f83e69444d7b14fed898c5102a4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:37:11 +0300 Subject: [PATCH 21/29] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3acb31..5a3e746 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: - name: Set up required libs run: | - sudo apt update + sudo apt update && sudo apt upgrade sudo apt install libx11-dev libgtk-3-dev - name: Build amd64 From 5f64d614b8992e9f945178001d4e8f3c809568ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:44:58 +0300 Subject: [PATCH 22/29] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a3e746..3c2af65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,7 @@ jobs: - name: Set up required libs run: | sudo apt update && sudo apt upgrade - sudo apt install libx11-dev libgtk-3-dev + sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev - name: Build amd64 env: From 64befc57d47268a7e998fdb04119fec29d904e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:49:10 +0300 Subject: [PATCH 23/29] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c2af65..f553da9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,7 @@ jobs: - name: Set up required libs run: | sudo apt update && sudo apt upgrade - sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev + sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev gcc-multilib - name: Build amd64 env: From f979e6eb3722321351e77fbb4f8b1261d889bb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 19:06:34 +0300 Subject: [PATCH 24/29] Update release.yml --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f553da9..31d3656 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,6 +81,7 @@ jobs: run: | sudo apt update && sudo apt upgrade sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev gcc-multilib + sudo apt install libx11-dev:i386 libgtk-3-dev:i386 libgl1-mesa-dev:i386 xorg-dev:i386 - name: Build amd64 env: From bfd5084fbde48ead1a977a899bbe5b74925fb6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 19:08:09 +0300 Subject: [PATCH 25/29] Update release.yml --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31d3656..9580af3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,6 +114,9 @@ jobs: - name: Download binaries uses: actions/download-artifact@v2 + - name: Print files + run: ls -A -l -h --color=auto + - name: Deploy latest release uses: "marvinpinto/action-automatic-releases@latest" if: success() From 07d1411d5a190d50e4ea7aa070b51f9aba0620cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 19:23:07 +0300 Subject: [PATCH 26/29] Update release.yml --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9580af3..96cf4a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,6 +79,7 @@ jobs: - name: Set up required libs run: | + sudo dpkg --add-architecture i386 sudo apt update && sudo apt upgrade sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev gcc-multilib sudo apt install libx11-dev:i386 libgtk-3-dev:i386 libgl1-mesa-dev:i386 xorg-dev:i386 From 49604430f9efe7b073ed98e1d056099e363ad8e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 19:43:48 +0300 Subject: [PATCH 27/29] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96cf4a9..2d5c7d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,7 +82,7 @@ jobs: sudo dpkg --add-architecture i386 sudo apt update && sudo apt upgrade sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev gcc-multilib - sudo apt install libx11-dev:i386 libgtk-3-dev:i386 libgl1-mesa-dev:i386 xorg-dev:i386 + sudo apt install libx11-dev:i386 libgtk-3-dev:i386 libgl1-mesa-dev:i386 - name: Build amd64 env: From efe7d9ea75e92f18aaa1f0ab88e574fedc9bfbbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 20:17:45 +0300 Subject: [PATCH 28/29] Update release.yml --- .github/workflows/release.yml | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d5c7d7..aa71b59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: CGO_ENABLED: 1 GOOS: windows GOARCH: amd64 - run: go build -ldflags -H=windowsgui -o bin/neoray-windows-amd64.exe ./src + run: go build -ldflags -H=windowsgui -o bin/neoray-win64.exe ./src - name: Set up MinGW x86 uses: egor-tensin/setup-mingw@v2 @@ -31,7 +31,7 @@ jobs: CGO_ENABLED: 1 GOOS: windows GOARCH: 386 - run: go build -ldflags -H=windowsgui -o bin/neoray-windows-386.exe ./src + run: go build -ldflags -H=windowsgui -o bin/neoray-win32.exe ./src - name: Upload binaries uses: actions/upload-artifact@v2 @@ -39,8 +39,8 @@ jobs: with: name: windows-binaries path: | - bin/neoray-windows-amd64.exe - bin/neoray-windows-386.exe + bin/neoray-win64.exe + bin/neoray-win32.exe build-macos: runs-on: macos-latest @@ -79,24 +79,15 @@ jobs: - name: Set up required libs run: | - sudo dpkg --add-architecture i386 sudo apt update && sudo apt upgrade - sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev gcc-multilib - sudo apt install libx11-dev:i386 libgtk-3-dev:i386 libgl1-mesa-dev:i386 + sudo apt install libx11-dev libgtk-3-dev libgl1-mesa-dev xorg-dev - name: Build amd64 env: CGO_ENABLED: 1 GOOS: linux GOARCH: amd64 - run: go build -o bin/neoray-linux-amd64 ./src - - - name: Build 386 - env: - CGO_ENABLED: 1 - GOOS: linux - GOARCH: 386 - run: go build -o bin/neoray-linux-386 ./src + run: go build -o bin/neoray-linux64 ./src - name: Upload binaries uses: actions/upload-artifact@v2 @@ -104,8 +95,7 @@ jobs: with: name: linux-binaries path: | - bin/neoray-linux-amd64 - bin/neoray-linux-386 + bin/neoray-linux64 release: runs-on: ubuntu-latest @@ -127,8 +117,7 @@ jobs: prerelease: false title: "Latest release" files: | - bin/neoray-windows-amd64.exe - bin/neoray-windows-386.exe + bin/neoray-win64.exe + bin/neoray-win32.exe bin/neoray-macos - bin/neoray-linux-amd64 - bin/neoray-linux-386 + bin/neoray-linux64 From b5c9d58b9f8b7609f9e3e9876b462b26575229a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Bulut?= <73897211+hismailbulut@users.noreply.github.com> Date: Wed, 18 Aug 2021 20:34:24 +0300 Subject: [PATCH 29/29] Update release.yml --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa71b59..128eb16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,7 +117,7 @@ jobs: prerelease: false title: "Latest release" files: | - bin/neoray-win64.exe - bin/neoray-win32.exe - bin/neoray-macos - bin/neoray-linux64 + windows-binaries/neoray-win64.exe + windows-binaries/neoray-win32.exe + macos-binaries/neoray-macos + linux-binaries/neoray-linux64