wrds-download

TUI/CLI tool for browsing and downloading WRDS data
Log | Files | Refs | README

commit 4dfe69b8c4d7ef38c9e42cebade9fae9e06a2bb0
parent 812b97abc3c38a81cc84b92ec6378b42a86c9e8e
Author: Erik Loualiche <eloualiche@users.noreply.github.com>
Date:   Fri, 20 Feb 2026 14:20:40 -0600

Merge pull request #2 from eloualiche/fix/ci

Simplify CI: cross-compile all targets from single runner
Diffstat:
M.github/workflows/release.yml | 49+++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml @@ -7,29 +7,20 @@ on: workflow_dispatch: jobs: - build-linux: + build: runs-on: ubuntu-latest - container: almalinux:8 # glibc 2.28 — matches RHEL 8 HPC clusters - steps: - - uses: actions/checkout@v4 - - - name: Install build tools - run: dnf install -y gcc gcc-c++ git - - - uses: actions/setup-go@v5 - with: - go-version: "1.25" - - - name: Build - run: go build -o wrds-dl-linux-amd64 . - - - uses: actions/upload-artifact@v4 - with: - name: wrds-dl-linux-amd64 - path: wrds-dl-linux-amd64 - - build-macos: - runs-on: macos-14 # Apple Silicon (arm64) macOS runner + strategy: + matrix: + include: + - goos: linux + goarch: amd64 + - goos: darwin + goarch: arm64 + - goos: darwin + goarch: amd64 + - goos: windows + goarch: amd64 + ext: .exe steps: - uses: actions/checkout@v4 @@ -38,15 +29,19 @@ jobs: go-version: "1.25" - name: Build - run: go build -o wrds-dl-darwin-arm64 . + env: + CGO_ENABLED: "0" + GOOS: ${{ matrix.goos }} + GOARCH: ${{ matrix.goarch }} + run: go build -ldflags="-s -w" -o wrds-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} . - uses: actions/upload-artifact@v4 with: - name: wrds-dl-darwin-arm64 - path: wrds-dl-darwin-arm64 + name: wrds-dl-${{ matrix.goos }}-${{ matrix.goarch }} + path: wrds-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} release: - needs: [build-linux, build-macos] + needs: [build] runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') permissions: @@ -59,3 +54,5 @@ jobs: files: | wrds-dl-linux-amd64/wrds-dl-linux-amd64 wrds-dl-darwin-arm64/wrds-dl-darwin-arm64 + wrds-dl-darwin-amd64/wrds-dl-darwin-amd64 + wrds-dl-windows-amd64/wrds-dl-windows-amd64.exe