File tree Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Original file line number Diff line number Diff line change 49
49
- name : Grab release version
50
50
id : process_release_version
51
51
run : |
52
- VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
53
- VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
52
+ VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
53
+ VERSION=$(echo $VERSION | tr -d '"') # Remove any surrounding quotes
54
54
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
55
55
VERSION=${{ inputs.postgresVersion }}
56
56
fi
81
81
SLACK_COLOR : ' danger'
82
82
SLACK_MESSAGE : ' Publishing pg_upgrade scripts failed'
83
83
SLACK_FOOTER : ' '
84
-
85
84
publish-prod :
86
85
needs : prepare
87
86
runs-on : ubuntu-latest
@@ -95,11 +94,13 @@ jobs:
95
94
steps :
96
95
- name : Checkout Repo
97
96
uses : actions/checkout@v3
98
-
97
+
98
+ - uses : DeterminateSystems/nix-installer-action@main
99
+
99
100
- name : Grab release version
100
101
id : process_release_version
101
102
run : |
102
- VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
103
+ VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
103
104
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
104
105
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
105
106
VERSION=${{ inputs.postgresVersion }}
Original file line number Diff line number Diff line change 4
4
# sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11"
5
5
# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
6
6
7
- - name : Install Git for Nix package management
8
- become : yes
9
- apt :
10
- name : git
11
- state : present
12
- update_cache : yes
13
- when : stage2_nix
14
-
15
7
- name : Install Postgres from nix binary cache
16
8
become : yes
17
9
shell : |
42
34
shell : |
43
35
sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#{{postgresql_version}}_src"
44
36
when : stage2_nix
45
-
46
- - name : Remove Git after Nix package installations
47
- become : yes
48
- apt :
49
- name : git
50
- state : absent
51
- autoremove : yes
52
- purge : yes
53
- when : stage2_nix
54
37
55
38
- name : Set ownership and permissions for /etc/ssl/private
56
39
become : yes
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ buildPgrxExtension_0_12_6 rec {
29
29
hash = "sha256-CkoNMoh40zbQL4V49ZNYgv3JjoNWjODtTpHn+L8DdZA=" ;
30
30
} ;
31
31
32
- nativeBuildInputs = [ pkg-config cargo ] ;
33
- buildInputs = [ openssl postgresql git ] ++ lib . optionals ( stdenv . isDarwin ) [
32
+ nativeBuildInputs = [ pkg-config cargo git ] ;
33
+ buildInputs = [ openssl postgresql ] ++ lib . optionals ( stdenv . isDarwin ) [
34
34
darwin . apple_sdk . frameworks . CoreFoundation
35
35
darwin . apple_sdk . frameworks . Security
36
36
darwin . apple_sdk . frameworks . SystemConfiguration
@@ -52,7 +52,10 @@ buildPgrxExtension_0_12_6 rec {
52
52
53
53
cargoLock = {
54
54
lockFile = "${ src } /Cargo.lock" ;
55
- allowBuiltinFetchGit = true ;
55
+ allowBuiltinFetchGit = false ;
56
+ outputHashes = {
57
+ "clickhouse-rs-1.1.0-alpha.1" = "sha256-G+v4lNP5eK2U45D1fL90Dq24pUSlpIysNCxuZ17eac0=" ;
58
+ } ;
56
59
} ;
57
60
58
61
buildAndTestSubdir = "wrappers" ;
You can’t perform that action at this time.
0 commit comments