Skip to content

Commit

Permalink
Merge pull request #3 from virtualzone/github-build-workflow
Browse files Browse the repository at this point in the history
Added build workflow
  • Loading branch information
virtualzone authored Mar 27, 2022
2 parents e8ccfa6 + 1df14af commit 3085271
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Image CI

on:
push:
branches: [ main ]
workflow_dispatch:
branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.18'
- name: Run build
run: make

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
config.json
config-approot.json
secret.json
build/
build/
.DS_Store
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ macos: macos_amd64 macos_arm64
windows: windows_amd64

linux_amd64:
env GOOS=linux GOARCH=amd64 go build -o build/onedrive-uploader_linux_amd64_${VERSION}
env GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o build/onedrive-uploader_linux_amd64_${VERSION}

linux_arm64:
env GOOS=linux GOARCH=arm64 go build -o build/onedrive-uploader_linux_arm64_${VERSION}
env GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o build/onedrive-uploader_linux_arm64_${VERSION}

linux_arm:
env GOOS=linux GOARCH=arm go build -o build/onedrive-uploader_linux_arm_${VERSION}
env GOOS=linux GOARCH=arm go build -ldflags="-w -s" -o build/onedrive-uploader_linux_arm_${VERSION}

macos_amd64:
env GOOS=darwin GOARCH=amd64 go build -o build/onedrive-uploader_macos_amd64_${VERSION}
env GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o build/onedrive-uploader_macos_amd64_${VERSION}

macos_arm64:
env GOOS=darwin GOARCH=arm64 go build -o build/onedrive-uploader_macos_arm64_${VERSION}
env GOOS=darwin GOARCH=arm64 go build -ldflags="-w -s" -o build/onedrive-uploader_macos_arm64_${VERSION}

windows_amd64:
env GOOS=windows GOARCH=amd64 go build -o build/onedrive-uploader_windows_amd64_${VERSION}
env GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o build/onedrive-uploader_windows_amd64_${VERSION}
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.1
v0.4.2
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

var AppVersion = "v0.4.1"
var AppVersion = "v0.4.2"

0 comments on commit 3085271

Please sign in to comment.