Skip to content

Commit

Permalink
Merge pull request #8 from HiWay-Media/main
Browse files Browse the repository at this point in the history
added release for compiling
  • Loading branch information
p4xx07 authored Apr 7, 2023
2 parents f5df176 + cd7fe61 commit fac3c17
Showing 1 changed file with 116 additions and 0 deletions.
116 changes: 116 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# .github/workflows/release.yaml
on: release
name: Build Release
jobs:
release-linux-386:
name: release linux/386
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: "386"
GOOS: linux
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"
release-linux-amd64:
name: release linux/amd64
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: amd64
GOOS: linux
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"
release-linux-arm:
name: release linux/386
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: "arm"
GOOS: linux
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"
release-linux-arm64:
name: release linux/amd64
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: arm64
GOOS: linux
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"
release-darwin-amd64:
name: release darwin/amd64
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: amd64
GOOS: darwin
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"
release-windows-386:
name: release windows/386
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: "386"
GOOS: windows
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"
release-windows-amd64:
name: release windows/amd64
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: compile and release
uses: Allan-Nava/go-release.action@v1.4.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: amd64
GOOS: windows
EXTRA_FILES: "LICENSE"
CMD_PATH: "cmd/main.go"
BUILD_ARGS: "-o sprite-preview"
PROJECT_NAME: "sprite-preview"

0 comments on commit fac3c17

Please sign in to comment.