-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify for PR. Test field offset. Test Run tests again. Test t File was not saved. simple run Check tests Revert struct. Fix tests. Check some offset thing. Array tests More test fixes. Fix tests Fix check. Fix build. better result types. Set environment variable. Do not run arm tests. Do not fail fast. Test build. Test linux. Another test Print out files. Fix library name. Cp Fix path Fix yaml Try to run tests Fix path Another test Fix pack? Upload nuget packages. Checkout everything. Build props. Remove patch. Test Fix sync. Small fixes. Fix To method. Fixes Several fixed and simplifications. Setup to test more providers and authentication. Extension project. Fix project name. Add support for MongoDB. Simplified code. Batching. Fix deadlock and implement listener. Styling. Deadlock test Temp. Rename file. Service extensions. Test Some improvements. Just some progress. Cache documents. Server project.
- Loading branch information
1 parent
e222d7a
commit 8567f28
Showing
43 changed files
with
639 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
linker = "aarch64-linux-gnu-gcc" | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
linker = "arm-linux-gnueabihf-gcc" | ||
|
||
[target.armv7-unknown-linux-musleabihf] | ||
linker = "arm-linux-musleabihf-gcc" |
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 |
---|---|---|
@@ -0,0 +1,137 @@ | ||
name: Build Binaries | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'binaries[0-9]' | ||
env: | ||
YRS_REPO: https://github.com/SebastianStehle/y-crdt | ||
YRS_BRANCH: main | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
# Based on https://www.rohanjain.in/cargo-cross/ | ||
build-native-binaries: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
include: | ||
# Windows | ||
- build: win-x64 | ||
os: windows-latest | ||
rust: stable | ||
target: x86_64-pc-windows-msvc | ||
linker: mingw-w64 | ||
cross: false | ||
|
||
# Linux | ||
- build: linux-x64 | ||
os: ubuntu-latest | ||
rust: stable | ||
target: x86_64-unknown-linux-gnu | ||
cross: false | ||
|
||
- build: linux-x64-musl | ||
os: ubuntu-latest | ||
rust: stable | ||
target: x86_64-unknown-linux-musl | ||
cross: false | ||
|
||
- build: linux-armv7 | ||
os: ubuntu-latest | ||
rust: stable | ||
target: armv7-unknown-linux-gnueabihf | ||
linker: gcc-arm-linux-gnueabihf | ||
cross: true | ||
|
||
- build: linux-armv7-musl | ||
os: ubuntu-latest | ||
rust: stable | ||
target: armv7-unknown-linux-musleabihf | ||
linker: gcc-arm-linux-gnueabihf | ||
cross: true | ||
|
||
- build: linux-arm64 | ||
os: ubuntu-latest | ||
rust: stable | ||
target: aarch64-unknown-linux-gnu | ||
linker: gcc-aarch64-linux-gnu | ||
cross: true | ||
|
||
- build: linux-arm64-musl | ||
os: ubuntu-latest | ||
rust: stable | ||
target: aarch64-unknown-linux-musl | ||
linker: gcc-aarch64-linux-gnu | ||
cross: true | ||
|
||
# MacOS | ||
- build: macos | ||
os: macos-latest | ||
rust: stable | ||
target: x86_64-apple-darwin | ||
cross: false | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
~/.rustup | ||
target | ||
key: ${{ runner.os }}-${{ matrix.rust }} | ||
|
||
- name: Install cross | ||
if: matrix.cross | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cross | ||
|
||
- name: Add musl tools | ||
run: sudo apt install -y musl musl-dev musl-tools | ||
if: endsWith(matrix.build, '-musl') | ||
|
||
- name: Install Linker | ||
if: matrix.cross | ||
run: | | ||
sudo apt update | ||
sudo apt install ${{ matrix.linker }} | ||
cat .cargo/config.github >> .cargo/config | ||
- name: Install Rust | ||
run: | | ||
rustup install ${{ matrix.rust }} | ||
rustup target add ${{ matrix.target }} | ||
rustup show | ||
- name: Clone Yrs repo | ||
run: | | ||
git clone ${YRS_REPO} --branch ${YRS_BRANCH} --single-branch yrs | ||
shell: bash | ||
|
||
- name: Build (cargo) | ||
if: "!matrix.cross" | ||
run: | | ||
cd yrs | ||
RUSTFLAGS="-C target-feature=-crt-static" cargo build --release --target ${{ matrix.target }} | ||
shell: bash | ||
|
||
- name: Build (cross) | ||
if: matrix.cross | ||
run: | | ||
cd yrs | ||
RUSTFLAGS="-C target-feature=-crt-static" cross build --release --target ${{ matrix.target }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.build }} | ||
path: | | ||
yrs/target/${{ matrix.target }}/release/*yrs.dll | ||
yrs/target/${{ matrix.target }}/release/*yrs.so | ||
yrs/target/${{ matrix.target }}/release/*yrs.dylib |
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
include: | ||
# Windows | ||
- build: win-x64 | ||
os: windows-latest | ||
|
||
# Linux | ||
- build: linux-x64 | ||
os: ubuntu-latest | ||
|
||
- build: linux-x64-musl | ||
os: ubuntu-latest | ||
|
||
# macOS | ||
- build: macos | ||
os: macos-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
path: ./output | ||
workflow: build-binaries.yml | ||
workflow_conclusion: success | ||
|
||
- name: Build Test | ||
run: | | ||
cd T | ||
dotnet build | ||
- name: Copy to Test Folder | ||
run: | | ||
cp output/${{matrix.build}}/*.* T/bin/Debug/net7.0 | ||
ls output/${{matrix.build}} | ||
ls T/bin/Debug/net7.0 | ||
- name: Test | ||
run: | | ||
cd T && dotnet run | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
pack-nuget: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
path: ./output | ||
workflow: build-binaries.yml | ||
workflow_conclusion: success | ||
|
||
- name: Nuget pack | ||
run: | | ||
dotnet pack -c Release | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: | | ||
**/*.nupkg |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Authors>lsvviana, sebastianstehle</Authors> | ||
<Copyright>MIT</Copyright> | ||
<Description>YDotNet provides cross=platform .Net bindings for the Yrs Rust port of Yjs.</Description> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/LSViana/YDotNet</PackageProjectUrl> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<Version>0.1.0</Version> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
</Project> |
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
Oops, something went wrong.