@@ -42,166 +42,6 @@ jobs:
42
42
- name : chroot build params
43
43
shell : alpine.sh {0}
44
44
run : etc/ci/describe-system-config.sh
45
- - name : make deps
45
+ - name : make garagedoor
46
46
shell : alpine.sh {0}
47
- run : make TIMED=1 TIMING=1 -j2 deps
48
- - name : all-except-generated-and-js-of-ocaml
49
- shell : alpine.sh {0}
50
- run : make TIMED=1 TIMING=1 -j2 CAMLEXTRAFLAGS="-ccopt -static" all-except-generated-and-js-of-ocaml
51
- - name : install-standalone-unified-ocaml
52
- shell : alpine.sh {0}
53
- run : make install-standalone-unified-ocaml BINDIR=dist
54
- # - name: install-standalone-js-of-ocaml
55
- # shell: alpine.sh {0}
56
- # run: make install-standalone-js-of-ocaml
57
- - name : upload standalone files
58
- uses : actions/upload-artifact@v3
59
- with :
60
- name : standalone-${{ matrix.alpine }}
61
- path : dist/fiat_crypto
62
- # - name: upload standalone js files
63
- # uses: actions/upload-artifact@v3
64
- # with:
65
- # name: standalone-html-${{ matrix.alpine }}
66
- # path: fiat-html
67
- - name : upload OCaml files
68
- uses : actions/upload-artifact@v3
69
- with :
70
- name : ExtractionOCaml-${{ matrix.alpine }}
71
- path : src/ExtractionOCaml
72
- if : always ()
73
- # - name: upload js_of_ocaml files
74
- # uses: actions/upload-artifact@v3
75
- # with:
76
- # name: ExtractionJsOfOCaml-${{ matrix.alpine }}
77
- # path: src/ExtractionJsOfOCaml
78
- # if: always ()
79
- - name : generated-files
80
- shell : alpine.sh {0}
81
- run : make TIMED=1 TIMING=1 -j2 generated-files
82
- - run : tar -czvf generated-files.tgz fiat-*/
83
- if : ${{ failure() }}
84
- - name : upload generated files
85
- uses : actions/upload-artifact@v3
86
- with :
87
- name : generated-files-${{ matrix.alpine }}
88
- path : generated-files.tgz
89
- if : ${{ failure() }}
90
- - name : standalone-haskell
91
- shell : alpine.sh {0}
92
- run : make TIMED=1 TIMING=1 -j1 standalone-haskell GHCFLAGS='+RTS -M7G -RTS'
93
- - name : upload Haskell files
94
- uses : actions/upload-artifact@v3
95
- with :
96
- name : ExtractionHaskell-${{ matrix.alpine }}
97
- path : src/ExtractionHaskell
98
- if : always ()
99
- - name : only-test-amd64-files-lite
100
- shell : alpine.sh {0}
101
- run : make TIMED=1 TIMING=1 -j2 only-test-amd64-files-lite SLOWEST_FIRST=1
102
- - name : install
103
- shell : alpine.sh {0}
104
- run : sudo make EXTERNAL_DEPENDENCIES=1 SKIP_COQSCRIPTS_INCLUDE=1 install install-standalone-ocaml
105
- - name : install-without-bedrock2
106
- shell : alpine.sh {0}
107
- run : sudo make EXTERNAL_DEPENDENCIES=1 SKIP_BEDROCK2=1 install-without-bedrock2 install-standalone-ocaml
108
- - name : install-dev
109
- shell : alpine.sh {0}
110
- run : sudo make EXTERNAL_REWRITER=1 EXTERNAL_COQPRIME=1 install install-standalone-ocaml
111
- - name : display timing info
112
- run : cat time-of-build-pretty.log || true
113
- - name : display per-line timing info
114
- run : etc/ci/github-actions-display-per-line-timing.sh
115
-
116
- test-standalone :
117
- strategy :
118
- fail-fast : false
119
- matrix :
120
- include :
121
- - alpine : ' edge'
122
- # - alpine: 'latest-stable'
123
- runs-on : ubuntu-latest
124
- name : test-standalone-${{ matrix.alpine }}
125
- needs : build
126
- steps :
127
- - uses : actions/checkout@v4
128
- - name : Download standalone ${{ matrix.alpine }}
129
- uses : actions/download-artifact@v3
130
- with :
131
- name : standalone-${{ matrix.alpine }}
132
- path : dist/
133
- - name : List files
134
- run : find dist
135
- - run : chmod +x dist/fiat_crypto
136
- - name : Test files (host)
137
- run : |
138
- echo "::group::file fiat_crypto"
139
- file dist/fiat_crypto
140
- echo "::endgroup::"
141
- echo "::group::ldd fiat_crypto"
142
- ldd dist/fiat_crypto || true
143
- echo "::endgroup::"
144
- etc/ci/test-run-fiat-crypto.sh dist/fiat_crypto
145
- - uses : jirutka/setup-alpine@v1
146
- with :
147
- branch : ${{ matrix.alpine }}
148
- extra-repositories : https://dl-cdn.alpinelinux.org/alpine/edge/testing
149
- - name : Test files (container)
150
- shell : alpine.sh {0}
151
- run : etc/ci/test-run-fiat-crypto.sh dist/fiat_crypto
152
-
153
- publish-standalone :
154
- runs-on : ubuntu-latest
155
- needs : build
156
- permissions :
157
- contents : write # IMPORTANT: mandatory for making GitHub Releases
158
- steps :
159
- - uses : actions/checkout@v4
160
- with :
161
- fetch-depth : 0 # Fetch all history for all tags and branches
162
- tags : true # Fetch all tags as well, `fetch-depth: 0` might be sufficient depending on Git version
163
- - name : Download standalone edge
164
- uses : actions/download-artifact@v3
165
- with :
166
- name : standalone-edge
167
- path : dist/
168
- - name : List files
169
- run : find dist
170
- - name : Rename files
171
- run : |
172
- echo "::group::find arch"
173
- arch="$(etc/ci/find-arch.sh dist/fiat_crypto "unknown")"
174
- tag="$(git describe --tags HEAD)"
175
- fname="Fiat-Cryptography_${tag}_Linux_${arch}"
176
- echo "$fname"
177
- mv dist/fiat_crypto "dist/$fname"
178
- find dist
179
- file "dist/$fname"
180
- - name : Upload artifacts to GitHub Release
181
- env :
182
- GITHUB_TOKEN : ${{ github.token }}
183
- # Upload to GitHub Release using the `gh` CLI.
184
- # `dist/` contains the built packages
185
- run : >-
186
- gh release upload
187
- '${{ github.ref_name }}' dist/**
188
- --repo '${{ github.repository }}'
189
- if : ${{ startsWith(github.ref, 'refs/tags/') && github.event_name == 'release' }}
190
-
191
- alpine-check-all :
192
- runs-on : ubuntu-latest
193
- needs : [build, test-standalone, publish-standalone]
194
- if : always()
195
- steps :
196
- - run : echo 'build passed'
197
- if : ${{ needs.build.result == 'success' }}
198
- - run : echo 'test-standalone passed'
199
- if : ${{ needs.test-standalone.result == 'success' }}
200
- - run : echo 'publish-standalone passed'
201
- if : ${{ needs.publish-standalone.result == 'success' }}
202
- - run : echo 'build failed' && false
203
- if : ${{ needs.build.result != 'success' }}
204
- - run : echo 'test-standalone failed' && false
205
- if : ${{ needs.test-standalone.result != 'success' }}
206
- - run : echo 'publish-standalone failed' && false
207
- if : ${{ needs.publish-standalone.result != 'success' }}
47
+ run : make -j2 src/Bedrock/End2End/X25519/GarageDoorTop.vo
0 commit comments