Skip to content
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
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ jobs:
fail-fast: false
matrix:
platform:
- linux-arm
- linux-x64
- macos-arm64
- macos-arm
- macos-x64
- windows-x64

include:
- platform: linux-arm
os: ubuntu-24.04-arm
- platform: linux-x64
os: ubuntu-22.04
- platform: macos-arm64
os: macos-14
os: ubuntu-latest
- platform: macos-arm
os: macos-15
- platform: macos-x64
os: macos-13
- platform: windows-x64
Expand All @@ -54,7 +57,7 @@ jobs:
tool: cargo-llvm-cov

- name: Tests
if: ${{ !startsWith(matrix.os, 'ubuntu-') }}
if: ${{ matrix.platform != 'linux-x64' }}
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -64,7 +67,7 @@ jobs:
cargo test

- name: Tests
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
if: ${{ matrix.platform == 'linux-x64' }}
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -74,7 +77,7 @@ jobs:
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Upload to codecov.io
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
if: ${{ matrix.platform == 'linux-x64' }}
uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand All @@ -84,11 +87,11 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Install benchmarking tools
if: ${{ github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'linux-x64' }}
uses: bencherdev/bencher@main

- name: Run benchmarks
if: ${{ github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
if: ${{ github.ref == 'refs/heads/main' && matrix.platform == 'linux-x64' }}
env:
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
BENCHER_PROJECT: theseus-rs-postgresql-embedded
Expand Down
5 changes: 4 additions & 1 deletion postgresql_extensions/tests/portal_corp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#[cfg(not(all(target_os = "macos", target_arch = "x86_64")))]
#[cfg(not(any(
all(target_os = "linux", target_arch = "aarch64"),
all(target_os = "macos", target_arch = "x86_64")
)))]
#[cfg(feature = "portal-corp")]
#[tokio::test]
async fn test_lifecycle() -> anyhow::Result<()> {
Expand Down
Loading