Update README.md #57
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
name: Tests and build checks | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
macos: | |
name: Macos build | |
runs-on: macos-12 | |
env: | |
GOOS: darwin | |
GOARCH: amd64 | |
CGO_ENABLED: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20.11' | |
- name: Build Macos executable | |
run: | | |
set -x | |
go build -o dx-download-agent cmd/dx-download-agent/dx-download-agent.go | |
chmod +x dx-download-agent | |
./dx-download-agent help | |
windows: | |
name: Windows build | |
runs-on: windows-latest | |
env: | |
GOOS: windows | |
GOARCH: amd64 | |
CGO_ENABLED: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20.11' | |
- name: Build Windows executable | |
run: | | |
go build -o dx-download-agent.exe cmd/dx-download-agent/dx-download-agent.go | |
.\dx-download-agent help | |
linux: | |
name: Linux build and test | |
runs-on: ubuntu-20.04 | |
env: | |
GOOS: linux | |
GOARCH: amd64 | |
CGO_ENABLED: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20.11' | |
- name: apt-get dependencies | |
run: sudo apt-get install -y build-essential | |
- name: Build Linux executable | |
run: | | |
set -x | |
go build -o dx-download-agent cmd/dx-download-agent/dx-download-agent.go | |
- name: Run tests | |
env: | |
DX_API_TOKEN: ${{ secrets.DX_API_TOKEN }} | |
run: | | |
set -x | |
./dx-download-agent download -max_threads=`nproc` test_files/single_file.manifest.json.bz2 |