Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add windows servers to smoke test #83

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ defaults:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:
build:
name: Build
runs-on: ubuntu-latest
build-matrix:
strategy:
matrix:
os: [ ubuntu-latest, windows-2019, windows-2022 ]
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./ # test our "action.yml" 👀
Expand All @@ -25,7 +28,7 @@ jobs:
bashbrew cat "$image"
bashbrew from --uniq "$image"

"$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64"
"$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64" or "windows-amd64"

arm32v7="$("$BASHBREW_SCRIPTS/bashbrew-arch-to-goenv.sh" arm32v7)"
eval "$arm32v7"
Expand Down
3 changes: 2 additions & 1 deletion bashbrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ set -Eeuo pipefail
dir="$(readlink -f "$BASH_SOURCE")"
dir="$(dirname "$dir")"

export GO111MODULE=on
: "${CGO_ENABLED:=0}"
export GO111MODULE=on CGO_ENABLED
(
cd "$dir"
go build -o bin/bashbrew ./cmd/bashbrew > /dev/null
Expand Down