Skip to content

Commit 9bf9f6a

Browse files
authored
Merge pull request #745 from kyoDralliam/positivity-cleanups
Fix issues with nix workflow
2 parents 6db5f24 + 23a15e7 commit 9bf9f6a

File tree

5 files changed

+64
-5
lines changed

5 files changed

+64
-5
lines changed

.github/workflows/nix-action-default-macos.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
3737
--argstr job "coq"
3838
equations:
39-
needs: []
39+
needs:
40+
- coq
4041
runs-on: macos-latest
4142
steps:
4243
- name: Determine which commit to test
@@ -67,12 +68,17 @@ jobs:
6768
\ bundle \"default\" --argstr job \"equations\" \\\n --dry-run 2>&1 > /dev/null)\n\
6869
echo $nb_dry_run\necho ::set-output name=status::$(echo $nb_dry_run | grep\
6970
\ \"built:\" | sed \"s/.*/built/\")\n"
71+
- if: steps.stepCheck.outputs.status == 'built'
72+
name: 'Building/fetching previous CI target: coq'
73+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
74+
--argstr job "coq"
7075
- if: steps.stepCheck.outputs.status == 'built'
7176
name: Building/fetching current CI target
7277
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
7378
--argstr job "equations"
7479
metacoq:
7580
needs:
81+
- coq
7682
- equations
7783
runs-on: macos-latest
7884
steps:
@@ -104,10 +110,30 @@ jobs:
104110
\ bundle \"default\" --argstr job \"metacoq\" \\\n --dry-run 2>&1 > /dev/null)\n\
105111
echo $nb_dry_run\necho ::set-output name=status::$(echo $nb_dry_run | grep\
106112
\ \"built:\" | sed \"s/.*/built/\")\n"
113+
- if: steps.stepCheck.outputs.status == 'built'
114+
name: 'Building/fetching previous CI target: coq'
115+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
116+
--argstr job "coq"
107117
- if: steps.stepCheck.outputs.status == 'built'
108118
name: 'Building/fetching previous CI target: equations'
109119
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
110120
--argstr job "equations"
121+
- if: steps.stepCheck.outputs.status == 'built'
122+
name: 'Building/fetching previous CI target: metacoq-template-coq'
123+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
124+
--argstr job "metacoq-template-coq"
125+
- if: steps.stepCheck.outputs.status == 'built'
126+
name: 'Building/fetching previous CI target: metacoq-pcuic'
127+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
128+
--argstr job "metacoq-pcuic"
129+
- if: steps.stepCheck.outputs.status == 'built'
130+
name: 'Building/fetching previous CI target: metacoq-safechecker'
131+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
132+
--argstr job "metacoq-safechecker"
133+
- if: steps.stepCheck.outputs.status == 'built'
134+
name: 'Building/fetching previous CI target: metacoq-erasure'
135+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
136+
--argstr job "metacoq-erasure"
111137
- if: steps.stepCheck.outputs.status == 'built'
112138
name: Building/fetching current CI target
113139
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"

.github/workflows/nix-action-default-ubuntu.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
3737
--argstr job "coq"
3838
equations:
39-
needs: []
39+
needs:
40+
- coq
4041
runs-on: ubuntu-latest
4142
steps:
4243
- name: Determine which commit to test
@@ -67,12 +68,17 @@ jobs:
6768
\ bundle \"default\" --argstr job \"equations\" \\\n --dry-run 2>&1 > /dev/null)\n\
6869
echo $nb_dry_run\necho ::set-output name=status::$(echo $nb_dry_run | grep\
6970
\ \"built:\" | sed \"s/.*/built/\")\n"
71+
- if: steps.stepCheck.outputs.status == 'built'
72+
name: 'Building/fetching previous CI target: coq'
73+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
74+
--argstr job "coq"
7075
- if: steps.stepCheck.outputs.status == 'built'
7176
name: Building/fetching current CI target
7277
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
7378
--argstr job "equations"
7479
metacoq:
7580
needs:
81+
- coq
7682
- equations
7783
runs-on: ubuntu-latest
7884
steps:
@@ -104,10 +110,30 @@ jobs:
104110
\ bundle \"default\" --argstr job \"metacoq\" \\\n --dry-run 2>&1 > /dev/null)\n\
105111
echo $nb_dry_run\necho ::set-output name=status::$(echo $nb_dry_run | grep\
106112
\ \"built:\" | sed \"s/.*/built/\")\n"
113+
- if: steps.stepCheck.outputs.status == 'built'
114+
name: 'Building/fetching previous CI target: coq'
115+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
116+
--argstr job "coq"
107117
- if: steps.stepCheck.outputs.status == 'built'
108118
name: 'Building/fetching previous CI target: equations'
109119
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
110120
--argstr job "equations"
121+
- if: steps.stepCheck.outputs.status == 'built'
122+
name: 'Building/fetching previous CI target: metacoq-template-coq'
123+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
124+
--argstr job "metacoq-template-coq"
125+
- if: steps.stepCheck.outputs.status == 'built'
126+
name: 'Building/fetching previous CI target: metacoq-pcuic'
127+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
128+
--argstr job "metacoq-pcuic"
129+
- if: steps.stepCheck.outputs.status == 'built'
130+
name: 'Building/fetching previous CI target: metacoq-safechecker'
131+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
132+
--argstr job "metacoq-safechecker"
133+
- if: steps.stepCheck.outputs.status == 'built'
134+
name: 'Building/fetching previous CI target: metacoq-erasure'
135+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"
136+
--argstr job "metacoq-erasure"
111137
- if: steps.stepCheck.outputs.status == 'built'
112138
name: Building/fetching current CI target
113139
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"

.nix/coq-nix-toolbox.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"3fab39da659da297a9633cf0d53c8dcb5a8f24ad"
1+
"39243d0edb4cb0b872d299c4b128fe232f0d8101"

.nix/nixpkgs.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fetchTarball {
2-
url = https://github.com/NixOS/nixpkgs/archive/34e4df55664c24df350f59adba8c7a042dece61e.tar.gz;
3-
sha256 = "0z313l585blzzj17gnaqi41j3z24gb9ivjdjvqx3r8xwlh0n4b3i";
2+
url = https://github.com/NixOS/nixpkgs/archive/fbac99137c1276ac8aa41d91b4997feaeab256a3.tar.gz;
3+
sha256 = "1dkj2b03zxy8c7cp2bs1yjlrg4zwnhb292w6v8h1zav0c3apv2m8";
44
}

safechecker/theories/PCUICErrors.v

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,13 @@ Inductive env_error :=
363363
| IllFormedDecl (e : string) (e : type_error)
364364
| AlreadyDeclared (id : string).
365365

366+
Definition string_of_env_error Σ (e : env_error) :=
367+
match e with
368+
| IllFormedDecl decl_name typ_error =>
369+
"Type error on " ^ decl_name ^ " " ^ string_of_type_error Σ typ_error
370+
| AlreadyDeclared decl_name =>
371+
"Name is already declared in environment " ^ decl_name
372+
end.
366373

367374
Section EnvCheck.
368375

0 commit comments

Comments
 (0)