Skip to content

Commit

Permalink
new release workflow, added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
johnuopini committed May 3, 2022
1 parent b214ff1 commit 14c7aa7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ on:

# workflow tasks
jobs:
generate:
name: Generate cross-platform builds
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Generate build files
uses: thatisuday/go-cross-build@v1
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
platforms: 'linux/amd64, darwin/amd64, darwin/arm64, linux/arm64'
package: 'csvexec'
name: 'csvexec'
compress: 'false'
dest: 'dist'
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz"
project_path: "."
binary_name: "csvexec"
extra_files: LICENSE README.md
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Csv Exec
This tool will parse a CSV file then, for every single line, it will create a shell script based on django template
syntax and execute the task in parallel. Failures will be logged.

### Example
You can use the data in the example folder to test it out:
```bash
$ csvexec examples/echo/echo.csv examples/echo/echo.sh.j2
Starting runner 05/03 04:00:38PM '22 +0200:
- Jobs: 8, total 1034 lines, stop at 1034
- Csv: examples/echo/echo.csv
- Template: examples/echo/echo.sh.j2
- Workdir: /tmp/csvexec
- Eta: 1m3s [+===>-------------------------] 7.4% [failed:10] [avg:66ms]
```

0 comments on commit 14c7aa7

Please sign in to comment.