-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b214ff1
commit 14c7aa7
Showing
2 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
``` |