-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sam/sqlalchemy_v2
- Loading branch information
Showing
59 changed files
with
453 additions
and
231 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,33 +53,44 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: 1.69.0 | ||
override: true | ||
- name: Build release libraries | ||
run: cargo build --release -p polar-c-api | ||
- name: Build x86_64 release musl library | ||
run: | | ||
rustup target add x86_64-unknown-linux-musl | ||
RUSTFLAGS="-C target-feature=-crt-static" cargo build --target x86_64-unknown-linux-musl --release -p polar-c-api | ||
- name: Download cross | ||
- name: Install cross | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: gh release download --repo cross-rs/cross --pattern 'cross-x86_64-unknown-linux-gnu\.tar\.gz' | ||
run: | | ||
gh release download --repo cross-rs/cross --pattern 'cross-x86_64-unknown-linux-gnu\.tar\.gz' | ||
tar -xzvf cross-x86_64-unknown-linux-gnu.tar.gz | ||
- name: Build aarch64 dynamic lib | ||
run: | | ||
rustup target add aarch64-unknown-linux-gnu | ||
RUSTFLAGS="-C target-feature=-crt-static" ./cross build --target aarch64-unknown-linux-gnu --release -p polar-c-api | ||
- name: Build aarch64 release musl library | ||
run: | | ||
rustup target add aarch64-unknown-linux-musl | ||
tar -xzvf cross-x86_64-unknown-linux-gnu.tar.gz | ||
RUSTFLAGS="-C target-feature=-crt-static" ./cross build --target aarch64-unknown-linux-musl --release -p polar-c-api | ||
- name: Build x86_64 release libraries | ||
run: cargo build --release -p polar-c-api | ||
- name: Build x86_64 release musl library | ||
run: | | ||
rustup target add x86_64-unknown-linux-musl | ||
RUSTFLAGS="-C target-feature=-crt-static" cargo build --target x86_64-unknown-linux-musl --release -p polar-c-api | ||
- name: Rename static lib | ||
run: mv target/release/libpolar.a target/libpolar-${{runner.os}}.a | ||
- name: Rename x86_64 static lib | ||
run: mv target/x86_64-unknown-linux-musl/release/libpolar.a target/libpolar-musl-x86_64.a | ||
- name: Rename aarch64 static lib | ||
run: mv target/aarch64-unknown-linux-musl/release/libpolar.a target/libpolar-musl-aarch64.a | ||
- name: Rename x86_64 dynamic lib | ||
run: mv target/release/libpolar.so target/libpolar-x86_64.so | ||
- name: Rename aarch64 dynamic lib | ||
run: mv target/aarch64-unknown-linux-gnu/release/libpolar.so target/libpolar-aarch64.so | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: oso_library | ||
path: target/release/libpolar.so | ||
path: | | ||
target/libpolar-x86_64.so | ||
target/libpolar-aarch64.so | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: oso_library | ||
|
@@ -106,7 +117,7 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: 1.69.0 | ||
override: true | ||
- name: Build release library | ||
run: cargo build --release -p polar-c-api | ||
|
@@ -151,7 +162,7 @@ jobs: | |
|
||
windows_libs: | ||
name: Build release libraries on Windows | ||
runs-on: windows-latest | ||
runs-on: windows-2019 | ||
needs: [version] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -166,7 +177,7 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: 1.69.0 | ||
override: true | ||
- name: Build release library | ||
run: cargo build --release -p polar-c-api | ||
|
@@ -252,7 +263,7 @@ jobs: | |
- name: Copy libraries into resources. | ||
run: | | ||
mkdir -p languages/java/oso/src/main/resources/linux | ||
cp -r oso_library/libpolar.so languages/java/oso/src/main/resources/linux/ | ||
cp -r oso_library/libpolar-x86_64.so languages/java/oso/src/main/resources/linux/libpolar.so | ||
mkdir -p languages/java/oso/src/main/resources/macos | ||
cp -r oso_library/libpolar-macOS-fat.dylib languages/java/oso/src/main/resources/macos/libpolar.dylib | ||
mkdir -p languages/java/oso/src/main/resources/win | ||
|
@@ -280,7 +291,6 @@ jobs: | |
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: 2.4 | ||
working-directory: "languages/ruby" | ||
- name: Set version env | ||
id: version | ||
|
@@ -292,7 +302,8 @@ jobs: | |
- name: Copy libraries into resources. | ||
run: | | ||
mkdir -p languages/ruby/ext/oso-oso/lib | ||
cp -r oso_library/libpolar.so languages/ruby/ext/oso-oso/lib/ | ||
cp -r oso_library/libpolar-x86_64.so languages/ruby/ext/oso-oso/lib/ | ||
cp -r oso_library/libpolar-aarch64.so languages/ruby/ext/oso-oso/lib/ | ||
cp -r oso_library/libpolar-macOS-fat.dylib languages/ruby/ext/oso-oso/lib/libpolar.dylib | ||
cp -r oso_library/polar.dll languages/ruby/ext/oso-oso/lib/ | ||
- name: Test | ||
|
@@ -329,7 +340,7 @@ jobs: | |
rm languages/python/oso/README.md | ||
cp README.md languages/python/oso/README.md | ||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.11.2 | ||
uses: pypa/cibuildwheel@v2.16.2 | ||
env: | ||
# Skip Python 2.7 and Python 3.5 | ||
CIBW_SKIP: "cp27-* cp35-* pp27-*" | ||
|
@@ -364,7 +375,7 @@ jobs: | |
rm languages/python/oso/README.md | ||
cp README.md languages/python/oso/README.md | ||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.11.2 | ||
uses: pypa/cibuildwheel@v2.16.2 | ||
env: | ||
# Skip Python 2.7 and Python 3.5 | ||
CIBW_SKIP: "cp27-* cp35-* pp27-*" | ||
|
@@ -383,7 +394,7 @@ jobs: | |
|
||
build_windows_wheels: | ||
name: Build wheels on Windows | ||
runs-on: windows-latest | ||
runs-on: windows-2019 | ||
needs: [version, windows_libs] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -401,7 +412,7 @@ jobs: | |
rm languages/python/oso/README.md | ||
cp README.md languages/python/oso/README.md | ||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.11.2 | ||
uses: pypa/cibuildwheel@v2.16.2 | ||
env: | ||
# Skip Python 2.7 and Python 3.5 | ||
CIBW_SKIP: "cp27-* cp35-* pp27-*" | ||
|
@@ -438,7 +449,7 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: 1.69.0 | ||
override: true | ||
- name: Add WebAssembly target | ||
run: rustup target add wasm32-unknown-unknown | ||
|
@@ -463,7 +474,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
os: [ubuntu-latest, macos-11, windows-2019] | ||
go-version: ["1.14", "1.15", "1.16", "1.17"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -531,7 +542,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version env | ||
|
@@ -560,7 +571,7 @@ jobs: | |
runs-on: macos-11 | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version env | ||
|
@@ -625,14 +636,21 @@ jobs: | |
arch -arm64 ./venv311/bin/pip install oso==${{ steps.version.outputs.oso_version }} -f ../wheel | ||
arch -arm64 ./venv311/bin/python test.py | ||
working-directory: test | ||
- name: "test python 3.12" | ||
run: | | ||
arch -arm64 /opt/homebrew/opt/[email protected]/bin/python3 -m venv venv312 | ||
arch -arm64 ./venv312/bin/pip install oso==${{ steps.version.outputs.oso_version }} -f ../wheel --no-deps --no-index | ||
arch -arm64 ./venv312/bin/pip install oso==${{ steps.version.outputs.oso_version }} -f ../wheel | ||
arch -arm64 ./venv312/bin/python test.py | ||
working-directory: test | ||
|
||
validate_python_windows: | ||
name: Test python ${{ matrix.python-version }} on Windows | ||
needs: [build_windows_wheels] | ||
runs-on: windows-latest | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version env | ||
|
@@ -661,7 +679,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version env | ||
|
@@ -681,8 +699,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
ruby-version: [2.4, 2.5, 2.6, 2.7, "3.0"] | ||
os: [ubuntu-latest, macos-11, windows-2019] | ||
ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version env | ||
|
@@ -714,7 +732,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
os: [ubuntu-latest, macos-11, windows-2019] | ||
java-version: [11, 12, 13, 14] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -749,7 +767,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
os: [ubuntu-latest, macos-11, windows-2019] | ||
node-version: ["12", "14", "16"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -794,11 +812,11 @@ jobs: | |
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.7" | ||
- name: Use Ruby 2.4 | ||
- name: Use Ruby 2.7 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: "2.4" | ||
ruby-version: "2.7" | ||
working-directory: "docs/examples/quickstart/ruby" | ||
- name: Use Node.js 12 | ||
uses: actions/setup-node@v1 | ||
|
@@ -812,7 +830,7 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: 1.69.0 | ||
override: true | ||
- name: Use Go 1.14 | ||
uses: actions/setup-go@v2 | ||
|
Oops, something went wrong.