-
Notifications
You must be signed in to change notification settings - Fork 199
C++ SDK #1421
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
C++ SDK #1421
Changes from all commits
5710cb7
ca3bf4e
d13bcec
05078d0
ca4e930
6b7d1f0
1a446c4
7fc6965
fc18d0f
55b8dd2
6ffccb7
5923b5a
f3f1b7b
ed6d08c
d90fee9
c846744
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,10 +66,13 @@ jobs: | |
| - sdk: rust | ||
| platform: server | ||
|
|
||
| - sdk: cpp | ||
| platform: server | ||
|
|
||
| # Console SDKs | ||
| - sdk: cli | ||
| platform: console | ||
|
|
||
| - sdk: web | ||
| platform: console | ||
|
|
||
|
|
@@ -161,6 +164,15 @@ jobs: | |
| if: matrix.sdk == 'rust' | ||
| uses: dtolnay/rust-toolchain@1.83.0 | ||
|
|
||
| - name: Setup C++ | ||
| if: matrix.sdk == 'cpp' | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential cmake libcurl4-openssl-dev nlohmann-json3-dev libgtest-dev | ||
| git clone --depth 1 --branch 1.10.5 https://github.com/libcpr/cpr.git /tmp/cpr | ||
|
Comment on lines
164
to
+172
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
cpp)
cmake -S . -B build -DAPPWRITE_BUILD_TESTS=ON -DCMAKE_PREFIX_PATH=/usr/local
cmake --build build -j$(nproc)
ctest --test-dir build --output-on-failure
;; |
||
| cmake -S /tmp/cpr -B /tmp/cpr/build -DCPR_BUILD_TESTS=OFF -DCPR_USE_SYSTEM_CURL=ON -DCMAKE_INSTALL_PREFIX=/usr/local | ||
| sudo cmake --build /tmp/cpr/build --target install -j$(nproc) | ||
|
|
||
| - name: Build SDK | ||
| working-directory: examples/${{ matrix.sdk }} | ||
| run: | | ||
|
|
@@ -237,6 +249,11 @@ jobs: | |
| cargo build --release | ||
| cargo test --lib | ||
| ;; | ||
| cpp) | ||
| cmake -S . -B build -DAPPWRITE_BUILD_TESTS=ON -DCMAKE_PREFIX_PATH=/usr/local | ||
| cmake --build build -j$(nproc) | ||
| ctest --test-dir build --output-on-failure | ||
| ;; | ||
| *) | ||
| echo "Unknown SDK: ${{ matrix.sdk }}" | ||
| exit 1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: Auto-close External Pull Requests | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened] | ||
|
|
||
| jobs: | ||
| auto_close: | ||
| if: github.head_ref != 'dev' | ||
| uses: appwrite/.github/.github/workflows/autoclose.yml@main | ||
| secrets: | ||
| GH_AUTO_CLOSE_PR_TOKEN: ${{ secrets.GH_AUTO_CLOSE_PR_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Publish Release | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Tag and publish release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup C++ build environment | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential cmake libcurl4-openssl-dev | ||
|
|
||
| - name: Build and validate SDK | ||
| run: | | ||
| cmake -S . -B build -DAPPWRITE_BUILD_TESTS=ON | ||
| cmake --build build | ||
| ctest --test-dir build --output-on-failure | ||
|
|
||
| - name: Create GitHub Release archive | ||
| run: | | ||
| git archive --format=tar.gz --prefix=reponame/ HEAD \ | ||
| > reponame-${{ github.ref_name }}.tar.gz | ||
|
|
||
| - name: Upload release artifact | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| files: reponame-${{ github.ref_name }}.tar.gz |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: Mark stale issues | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 * * *" # Midnight Runtime | ||
|
|
||
| jobs: | ||
| stale: | ||
| uses: appwrite/.github/.github/workflows/stale.yml@main |
Uh oh!
There was an error while loading. Please reload this page.