File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : release
2+
3+ permissions :
4+ contents : read
5+
6+ on :
7+ push :
8+ tags :
9+ - ' v*'
10+
11+ jobs :
12+ release :
13+ name : Build and Release Spec PDFs
14+ runs-on : ubuntu-latest
15+ # Refer to the build container by its SHA instead of the name, to
16+ # prevent caching problems when updating the image.
17+ # container: khronosgroup/docker-images:asciidoctor-spec.20240702
18+ container : khronosgroup/docker-images@sha256:4aab96a03ef292439c9bd0f972adfa29cdf838d0909b1cb4ec2a6d7b2d14a37f
19+
20+ permissions :
21+ contents : write
22+
23+ steps :
24+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+ with :
26+ submodules : recursive
27+ # If fetch-depth: 0 is not specified, then
28+ # git describe --tags --dirty
29+ # below fails.
30+ # This could also affect SPECREVISION in the Makefile.
31+ fetch-depth : 0
32+
33+ # Ownerships in the working directory are odd.
34+ # . is owned by UID 1001, while repo files are owned by root.
35+ # This leads to many odd messages like
36+ # fatal: detected dubious ownership in repository at '/__w/OpenCL-Docs/OpenCL-Docs'
37+ # The 'git config' is a brute-force workaround.
38+ - name : Git safe directory workaround
39+ run : |
40+ git config --global --add safe.directory '*'
41+ ls -lda . .. .git Makefile
42+
43+ - name : Build Specs
44+ run : |
45+ python3 makeSpec -clean -spec core OUTDIR=out.release -j 5 api c env ext cxx4opencl
46+
47+ - name : Release Specs
48+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
49+ with :
50+ draft : true
51+ files : |
52+ out.release/pdf/*
You can’t perform that action at this time.
0 commit comments