Skip to content

Commit

Permalink
fix(ci): install cargo-get/cargo-edit
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Dec 11, 2023
1 parent 4e1beef commit 2bcfb4f
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/build-and-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ runs:
/home/${{ inputs.user }}/.pgrx
key: pg_idkit-tests-pgrx-init-${{ inputs.rust-container-version }}-cargo-${{ runner.os }}

###############
# Build/Tests #
###############
#########
# Setup #
#########

- name: Add idkit to group
shell: bash
Expand All @@ -96,6 +96,26 @@ runs:
git config --global --add safe.directory /__w/pg_idkit/pg_idkit
su idkit -c "git config --global --add safe.directory /__w/pg_idkit/pg_idkit"
- name: Reinstall deps due to GLIBC issue
if: ${{ inputs.artifact-upload }}
shell: bash
env:
CARGO_HOME: ${{ inputs.cargo-home-dir }}
CARGO_TARGET_DIR: ${{ inputs.cargo-target-dir }}
SCCACHE_DIR: ${{ inputs.sccache-dir }}
CARGO_BUILD_RUSTC_WRAPPER: ${{ inputs.cargo-build-rustc-wrapper }}
CARGO_INCREMENTAL: ${{ inputs.cargo-env-incrmental }}
CARGO_PROFILE: ${{ inputs.cargo-profile }}
USER: ${{ inputs.user }}
PGRX_PKG_PATH_PREFIX: ${{ inputs.cargo-target-dir }}
run: |
su idkit -c "cargo install --force cargo-get cargo-edit"
###############
# Build/Tests #
###############

# Initialize cargo-pgrx if necessary
- name: Initialize cargo-pgrx
shell: bash
Expand Down Expand Up @@ -159,21 +179,6 @@ runs:
# Artifacts #
#############

- name: Reinstall deps due to GLIBC issue
if: ${{ inputs.artifact-upload }}
shell: bash
env:
CARGO_HOME: ${{ inputs.cargo-home-dir }}
CARGO_TARGET_DIR: ${{ inputs.cargo-target-dir }}
SCCACHE_DIR: ${{ inputs.sccache-dir }}
CARGO_BUILD_RUSTC_WRAPPER: ${{ inputs.cargo-build-rustc-wrapper }}
CARGO_INCREMENTAL: ${{ inputs.cargo-env-incrmental }}
CARGO_PROFILE: ${{ inputs.cargo-profile }}
USER: ${{ inputs.user }}
PGRX_PKG_PATH_PREFIX: ${{ inputs.cargo-target-dir }}
run: |
su idkit -c "cargo install --force cargo-get cargo-edit"
# Run cargo test
- name: Build a package
if: ${{ inputs.artifact-upload }}
Expand Down

0 comments on commit 2bcfb4f

Please sign in to comment.