Skip to content

Commit

Permalink
github actons
Browse files Browse the repository at this point in the history
  • Loading branch information
artjoma committed Nov 21, 2023
1 parent b837e42 commit a0cf682
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Audit

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:

audit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21

- name: Verify dependencies
run: go mod verify

- name: Prepare build dir
run: mkdir build
- name: Build Linux
run: go build -ldflags "-s -w" -o build/mosaic
- name: Build Win
run: env GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o build/mosaic.exe
- name: Build Mac
run: env GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o build/mosaic-darwin

- name: Run tests
run: go test -race -vet=off ./...

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: artifact
path: build
retention-days: 30
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Mosaic is POC of distributed file storage.
* Internal storage based on embedded Pebble key value database.
* Concurrent upload and download.
* File chunks id and file id based on Blake3s hash function.
* HTTP API with common functionality
* HTTP API with common functionality.
### Limitation
* Max file chunk per shard 512Mb

Expand Down

0 comments on commit a0cf682

Please sign in to comment.