Skip to content

Commit

Permalink
CI tests: try Windows and macoš
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed May 17, 2024
1 parent 31023a4 commit 759468d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/setupandbuild/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
- name: Build
uses: actions-rs/cargo@v1
with:
use-cross: ${{ inputs.rust_target == 'x86_64-unknown-linux-musl' || inputs.rust_target == 'x86_64-pc-windows-gnu' || inputs.rust_target == 'aarch64-unknown-linux-gnu' || inputs.rust_target == 'riscv64gc-unknown-linux-gnu' }}
use-cross: ${{ vars.RUNNER_OS != 'Windows' && (inputs.rust_target == 'x86_64-unknown-linux-musl' || inputs.rust_target == 'x86_64-pc-windows-gnu' || inputs.rust_target == 'aarch64-unknown-linux-gnu' || inputs.rust_target == 'riscv64gc-unknown-linux-gnu') }}
command: build
args: --locked --profile=${{ inputs.rust_profile }} --manifest-path=cli/Cargo.toml --target=${{ inputs.rust_target }}
- name: Copy binary
Expand Down
3 changes: 3 additions & 0 deletions .github/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
runs:
using: composite
steps:
- run: brew install docker && colima start
shell: bash
if: vars.RUNNER_OS == 'macOS'
- run: cd .github/pg_container && docker build --build-arg PG_VERSION=${{ inputs.pg_version }} -t pg2parquet-postgres .
shell: bash
- run: docker run -d --name pg2parquet-postgres1 -p 5432:5432 -e POSTGRES_PASSWORD=postgres pg2parquet-postgres
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
pg_version: '12' # oldest supported version as of 2024
- os: windows-latest
target: x86_64-pc-windows-gnu
pg_version: '16'
- os: macos-latest
target: x86_64-apple-darwin
pg_version: '16'
steps:
- uses: actions/checkout@v3
- name: Set up and build
Expand Down

0 comments on commit 759468d

Please sign in to comment.