Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
samyfodil committed Dec 11, 2024
0 parents commit c3c9b93
Show file tree
Hide file tree
Showing 9 changed files with 273 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
# run only against tags
tags:
- '*'

jobs:
release:
strategy:
matrix:
include:
- os: ubuntu-latest
config: '.goreleaser.linux.yml'
- os: macos-latest
config: '.goreleaser.darwin.yml'
- os: windows-latest
config: '.goreleaser.windows.yml'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Install UPX
uses: samyfodil/upx-action@v1.0.3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.0'

- name: Remove .git folder from submodule on Windows
if: runner.os == 'Windows'
run: Remove-Item -Recurse -Force tau\.git
shell: powershell

- name: Remove .git folder from submodule on Linux/macOS
if: runner.os != 'Windows'
run: rm -rf tau/.git
shell: bash

- name: Run GoReleaser for service
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --config ../service/${{ matrix.config }}
workdir: tau
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore

# Node artifact files
node_modules/
dist/
build/
fakeroot/
bin/

# Compiled Java class files
*.class

# Compiled Python bytecode
*.py[cod]

# Log files
*.log

# Package files
*.jar

# Maven
target/
dist/

# JetBrains IDE
.idea/

# Unit test reports
TEST*.xml

# Generated by MacOS
.DS_Store

# Generated by Windows
Thumbs.db

# Applications
*.app
*.exe
*.war

# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tau"]
path = tau
url = https://github.com/taubyte/tau
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright 2020 Taubyte

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Empty file added README.md
Empty file.
53 changes: 53 additions & 0 deletions service/.goreleaser.darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 2
project_name: taucorder-service
release:
# Repo in which the release will be created.
github:
owner: taubyte
name: taucorder

# Control the draft and prerelease settings
draft: false
replace_existing_draft: false
prerelease: auto

# Release naming and SCM interaction
name_template: ""
disable: false
skip_upload: false

builds:
- id: "darwin"
main: "./tools/taucorder/service"
binary: "drive"
goos:
- darwin
goarch:
- arm64
- amd64
env:
- CGO_ENABLED=0
flags:
- -trimpath
tags:
- darwin
gcflags:
- all=-l
ldflags:
- -s -w

changelog:
disable: true

checksum:
disable: true

archives:
- files:
- none*

upx:
- enabled: true
brute: true
compress: best
lzma: true
50 changes: 50 additions & 0 deletions service/.goreleaser.linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2
project_name: taucorder-service
release:
# Repo in which the release will be created.
github:
owner: taubyte
name: taucorder

# Control the draft and prerelease settings
draft: false
replace_existing_draft: false
prerelease: auto

# Release naming and SCM interaction
name_template: ""
disable: false
skip_upload: false

builds:
- id: "linux"
main: "./tools/taucorder/service"
binary: "drive"
goos:
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- GOAMD64=v2
gcflags:
- all=-l
ldflags:
- -s -w

changelog:
disable: true

checksum:
disable: true

archives:
- files:
- none*

upx:
- enabled: true
brute: true
compress: best
lzma: true
51 changes: 51 additions & 0 deletions service/.goreleaser.windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2
project_name: taucorder-service
release:
# Repo in which the release will be created.
github:
owner: taubyte
name: taucorder

# Control the draft and prerelease settings
draft: false
replace_existing_draft: false
prerelease: auto

# Release naming and SCM interaction
name_template: ""
disable: false
skip_upload: false

builds:
- id: "windows"
main: "./tools/taucorder/service"
binary: "drive"
goos:
- windows
goarch:
- amd64
env:
- CGO_ENABLED=0
- GOAMD64=v2
tags:
- windows
gcflags:
- all=-l
ldflags:
- -s -w

changelog:
disable: true

checksum:
disable: true

archives:
- files:
- none*

upx:
- enabled: true
brute: true
compress: best
lzma: true
1 change: 1 addition & 0 deletions tau
Submodule tau added at fd198f

0 comments on commit c3c9b93

Please sign in to comment.