Skip to content

Commit 451579d

Browse files
fix: downgrade tunners (#318)
1 parent 7278f90 commit 451579d

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.github/workflows/publish.reusable.yml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717
permissions:
1818
contents: write
19-
# ? what's this?! required for executing the node script?
2019
id-token: write
2120
steps:
2221
- uses: actions/checkout@v4

.github/workflows/pull_request.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,20 @@ jobs:
102102
version: latest
103103
- name: Run Lints
104104
run: |
105+
cargo sqlx prepare --check --workspace
105106
cargo clippy
106107
cargo run -p rules_check
107108
biome lint
108-
cargo sqlx prepare --check --workspace
109109
110110
test:
111111
name: Test
112112
runs-on: ${{ matrix.os }}
113113
strategy:
114114
matrix:
115115
include:
116-
# reactive once we upgrade to the latest version of pg_query that is windows-compatible
117-
- os: windows-latest
118-
- os: ubuntu-latest
116+
# use the same images we use for compiling
117+
- os: windows-2022
118+
- os: ubuntu-22.04
119119
steps:
120120
- name: Checkout PR branch
121121
uses: actions/checkout@v4
@@ -138,8 +138,10 @@ jobs:
138138
run: cargo test --workspace
139139

140140
test-js-bindings:
141-
name: Test JS Bindings
142-
runs-on: ubuntu-latest
141+
name:
142+
Test JS Bindings
143+
# use the same image we use for compiling
144+
runs-on: ubuntu-22.04
143145
services:
144146
postgres:
145147
image: postgres:latest
@@ -173,7 +175,7 @@ jobs:
173175

174176
codegen:
175177
name: Check Codegen
176-
runs-on: ubuntu-latest
178+
runs-on: ubuntu-22.04
177179
services:
178180
postgres:
179181
image: postgres:latest

.github/workflows/release.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
strategy:
3838
matrix:
3939
config:
40-
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
41-
- { os: ubuntu-latest, target: aarch64-unknown-linux-gnu }
42-
- { os: macos-latest, target: x86_64-apple-darwin }
43-
- { os: macos-latest, target: aarch64-apple-darwin }
44-
- { os: windows-latest, target: x86_64-pc-windows-msvc }
45-
- { os: windows-latest, target: aarch64-pc-windows-msvc }
40+
- { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu }
41+
- { os: ubuntu-22.04, target: aarch64-unknown-linux-gnu }
42+
- { os: macos-14, target: x86_64-apple-darwin }
43+
- { os: macos-14, target: aarch64-apple-darwin }
44+
- { os: windows-2022, target: x86_64-pc-windows-msvc }
45+
- { os: windows-2022, target: aarch64-pc-windows-msvc }
4646

4747
runs-on: ${{ matrix.config.os }}
4848

@@ -87,12 +87,12 @@ jobs:
8787

8888
# windows is a special snowflake too, it saves binaries as .exe
8989
- name: 👦 Name the Binary
90-
if: matrix.config.os == 'windows-latest'
90+
if: matrix.config.os == 'windows-2022'
9191
run: |
9292
mkdir dist
9393
cp target/${{ matrix.config.target }}/release/postgrestools.exe ./dist/postgrestools_${{ matrix.config.target }}
9494
- name: 👦 Name the Binary
95-
if: matrix.config.os != 'windows-latest'
95+
if: matrix.config.os != 'windows-2022'
9696
run: |
9797
mkdir dist
9898
cp target/${{ matrix.config.target }}/release/postgrestools ./dist/postgrestools_${{ matrix.config.target }}

0 commit comments

Comments
 (0)