Skip to content

Commit

Permalink
Optional Remote Worker (#76)
Browse files Browse the repository at this point in the history
* separate pure rust and pgrx code
  • Loading branch information
ChuckHend authored Mar 14, 2024
1 parent c886ce3 commit a8384e9
Show file tree
Hide file tree
Showing 67 changed files with 874 additions and 3,769 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/extension_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PG Vectorize Extension
defaults:
run:
shell: bash
working-directory: ./
working-directory: ./extension

on:
pull_request:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
cache-directories: /home/runner/.pgrx
- uses: ./.github/actions/pgx-init
with:
working-directory: ./
working-directory: ./extension
- name: Cargo format
run: cargo fmt --all --check
- name: Clippy
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
cache-directories: /home/runner/.pgrx
- uses: ./.github/actions/pgx-init
with:
working-directory: ./
working-directory: ./extension
- name: Restore cached binaries
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -160,10 +160,10 @@ jobs:
sudo mv stoml /usr/local/bin/
cargo install pg-trunk
- name: trunk build
working-directory: ./
working-directory: ./extension
run: ~/.cargo/bin/trunk build --pg-version ${{ matrix.pg-version }}
- name: trunk publish
working-directory: ./
working-directory: ./extension
env:
TRUNK_API_TOKEN: ${{ secrets.TRUNK_AUTH_TOKEN }}
run: ~/.cargo/bin/trunk publish
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/extension_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Extension Upgrade
defaults:
run:
shell: bash
working-directory: ./
working-directory: ./extension

on:
pull_request:
Expand Down Expand Up @@ -46,17 +46,17 @@ jobs:
run: echo "CI_BRANCH=$(git name-rev --name-only HEAD)" >> $GITHUB_OUTPUT
- uses: ./.github/actions/pgx-init
with:
working-directory: ./
working-directory: ./extension
- name: Install sys dependencies
run: |
sudo apt-get update && sudo apt-get install -y postgresql-server-dev-14
make setup
- name: Test previous version (main))
run: |
git fetch --tags
git checkout main
echo "\q" | make run
cargo test -- --ignored --test-threads=1
# - name: Test previous version (main))
# run: |
# git fetch --tags
# git checkout main
# echo "\q" | make run
# cargo test -- --ignored --test-threads=1
- name: Test branch's version
env:
CI_BRANCH: ${{ steps.current-version.outputs.CI_BRANCH }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pgxn-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4
- name: Bundle the Release
working-directory: ./extension
env: { GIT_BUNDLE_OPTS: --add-file META.json }
run: make META.json && pgxn-bundle
- name: Release on PGXN
working-directory: ./extension
env:
PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }}
PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }}
Expand Down
Loading

0 comments on commit a8384e9

Please sign in to comment.