Skip to content

working rewrite #146

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

Merged
merged 8 commits into from
Jan 30, 2025
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
100 changes: 50 additions & 50 deletions .github/workflows/cross_build.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
name: cross-build
# name: cross-build

on:
push:
branches:
- improve-and-fix-workflow
# pull_request:
# types: [closed]
# branches:
# - main
# on:
# push:
# branches:
# - improve-and-fix-workflow
# # pull_request:
# # types: [closed]
# # branches:
# # - main

jobs:
wait-for-other-workflow:
name: Wait for Other Workflow
runs-on: ubuntu-latest
steps:
- name: Wait for Other Workflow to Complete
run: "echo 'Waiting for other workflow to complete...'"
# jobs:
# wait-for-other-workflow:
# name: Wait for Other Workflow
# runs-on: ubuntu-latest
# steps:
# - name: Wait for Other Workflow to Complete
# run: "echo 'Waiting for other workflow to complete...'"

build:
if: github.event.pull_request.merged == true
name: Build C release for ${{ matrix.os.name }}
strategy:
matrix:
os:
- name: ubuntu
lib: libsurrealdb_c.so
- name: macos
lib: libsurrealdb_c.dylib
- name: windows
lib: surrealdb_c.dll
runs-on: ${{ format('{0}-latest', matrix.os.name) }}
steps:
- name: Checkout Surreal C lib
uses: actions/checkout@v3
with:
repository: surrealdb/surrealdb.c
# build:
# if: github.event.pull_request.merged == true
# name: Build C release for ${{ matrix.os.name }}
# strategy:
# matrix:
# os:
# - name: ubuntu
# lib: libsurrealdb_c.so
# - name: macos
# lib: libsurrealdb_c.dylib
# - name: windows
# lib: surrealdb_c.dll
# runs-on: ${{ format('{0}-latest', matrix.os.name) }}
# steps:
# - name: Checkout Surreal C lib
# uses: actions/checkout@v3
# with:
# repository: surrealdb/surrealdb.c

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# - name: Set up Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# override: true

- name: Build Rust library
run: cargo build --release
# - name: Build Rust library
# run: cargo build --release

- name: Archive library
run: |
mkdir -p dist/${{ matrix.os.name }}
cp target/release/${{ matrix.os.lib }} dist/${{ matrix.os.name }}/${{ matrix.os.lib }}
# - name: Archive library
# run: |
# mkdir -p dist/${{ matrix.os.name }}
# cp target/release/${{ matrix.os.lib }} dist/${{ matrix.os.name }}/${{ matrix.os.lib }}

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os.name }}-build
path: dist/${{ matrix.os.name }}
# - name: Upload build artifacts
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.os.name }}-build
# path: dist/${{ matrix.os.name }}
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
surrealdb-version: ["v2.0.0", "v2.1.1", "v2.1.2"] # Issue with v2.1.0
surrealdb-version: ["v2.1.1", "v2.1.2"] # Issue with v2.1.0
name: Run unit test SurrealDB ${{ matrix.surrealdb-version }} - Python Version ${{ matrix.python-version }}
steps:
- name: Checkout repository
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Run unit tests
env:
SURREALDB_URL: "http://localhost:8000"
run: python -m unittest discover -s tests
run: export PYTHONPATH="./src" && python -m unittest discover -s tests



7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

Loading
Loading