Skip to content

Commit

Permalink
One more try
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Jan 28, 2025
1 parent c29998c commit 481b6b6
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/_check-codestyle-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ defaults:
run:
shell: bash -euxo pipefail {0}

# No permission for GITHUB_TOKEN by default; the **minimal required** set of permissions should be granted in each job.
permissions: {}

jobs:
check-codestyle-rust:
strategy:
Expand All @@ -30,9 +33,6 @@ jobs:
password: ${{ secrets.NEON_DOCKERHUB_PASSWORD }}
options: --init

permissions:
id-token: write # .github/actions/download

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -93,20 +93,25 @@ jobs:
if: ${{ !cancelled() }}
run: cargo deny check --hide-inclusion-graph

# To check diesel schema, we need any version of Postgres, so get it from build artifacts
- name: Download Latest Neon artifact
if: ${{ !cancelled() }}
uses: ./.github/actions/download
with:
name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
path: /tmp/neon/
prefix: latest
aws-oicd-role-arn: ${{ vars.DEV_AWS_OIDC_ROLE_ARN }}
# # To check diesel schema, we need any version of Postgres, so get it from build artifacts
# - name: Download Latest Neon artifact
# if: ${{ !cancelled() }}
# uses: ./.github/actions/download
# with:
# name: neon-${{ runner.os }}-${{ runner.arch }}-release-artifact
# path: /tmp/neon/
# prefix: latest
# aws-oicd-role-arn: ${{ vars.DEV_AWS_OIDC_ROLE_ARN }}

- name: Compile required thing
run: |
make postgres-v16 -j$(nproc)
make neon -j$(nproc)
- name: Check diesel schema
if: ${{ !cancelled() }}
env:
POSTGRES_DISTRIB_DIR: /tmp/neon/pg_install
# POSTGRES_DISTRIB_DIR: /tmp/neon/pg_install
DATABASE_URL: postgresql://localhost:1235/storage_controller
run: |
export LD_LIBRARY_PATH=${POSTGRES_DISTRIB_DIR}/v16/lib
Expand Down

0 comments on commit 481b6b6

Please sign in to comment.