Skip to content

Commit

Permalink
ci: postgis try 2 disable build temporay
Browse files Browse the repository at this point in the history
  • Loading branch information
r1tsuu committed Nov 8, 2024
1 parent 0fd21f2 commit 7c9f9ce
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,57 +101,57 @@ jobs:
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF}...${GITHUB_SHA}
npx lint-staged --diff="origin/${GITHUB_BASE_REF}...${GITHUB_SHA}"
build:
needs: changes
if: ${{ needs.changes.outputs.needs_build == 'true' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 25

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- name: Setup Node@${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
timeout-minutes: 720
with:
path: ${{ env.STORE_PATH }}
key: pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
pnpm-store-
pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm run build:all
env:
DO_NOT_TRACK: 1 # Disable Turbopack telemetry

- name: Cache build
uses: actions/cache@v4
timeout-minutes: 10
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
# build:
# needs: changes
# if: ${{ needs.changes.outputs.needs_build == 'true' }}
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 25

# # https://github.com/actions/virtual-environments/issues/1187
# - name: tune linux network
# run: sudo ethtool -K eth0 tx off rx off

# - name: Setup Node@${{ env.NODE_VERSION }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ env.NODE_VERSION }}

# - name: Install pnpm
# uses: pnpm/action-setup@v4
# with:
# version: ${{ env.PNPM_VERSION }}
# run_install: false

# - name: Get pnpm store directory
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

# - name: Setup pnpm cache
# uses: actions/cache@v4
# timeout-minutes: 720
# with:
# path: ${{ env.STORE_PATH }}
# key: pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# pnpm-store-
# pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}

# - run: pnpm install
# - run: pnpm run build:all
# env:
# DO_NOT_TRACK: 1 # Disable Turbopack telemetry

# - name: Cache build
# uses: actions/cache@v4
# timeout-minutes: 10
# with:
# path: ./*
# key: ${{ github.sha }}-${{ github.run_number }}

tests-unit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "CREATE ROLE runner SUPERUSER LOGIN;"
psql "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "SELECT version();"
echo "POSTGRES_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" >> $GITHUB_ENV
sudo apt-get install -y postgresql-14-postgis-3
sudo apt-get install -y postgis postgresql-14-postgis-3-scripts
if: startsWith(matrix.database, 'postgres')

- name: Configure PostgreSQL with custom schema
Expand Down

0 comments on commit 7c9f9ce

Please sign in to comment.