summary refs log tree commit diff stats
path: root/.github/workflows/ci_docs.yml
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-23 02:28:42 -0700
committerGitHub <noreply@github.com>2021-04-23 11:28:42 +0200
commitdce0b3b002fcbac716bada039bed4a02eb501744 (patch)
treeb71db24a91382626d6821542807f1723c4b93e70 /.github/workflows/ci_docs.yml
parentdbb053492a3c64236f7e8f9358b9c7f297ba241a (diff)
downloadNim-dce0b3b002fcbac716bada039bed4a02eb501744.tar.gz
refactor all code that builds csources (#17815)
* refactor all code that builds csources
* fixup
* nim_csourcesDir_v0 + nim_csourcesDir
* remove deprecated, unused scripts from ci/
* reuse nimCsourcesHash in ci
* simplify CI pipelines by reusing nimBuildCsourcesIfNeeded
* simplify ci_docs.yml by reusing nimBuildCsourcesIfNeeded
* cleanup
* use csources_v1 as destination dir
* fixup
* remove pushCsources
* address comment: remove build.sh support for now
* fixup
Diffstat (limited to '.github/workflows/ci_docs.yml')
-rw-r--r--.github/workflows/ci_docs.yml51
1 files changed, 5 insertions, 46 deletions
diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml
index 750613574..1459d6a31 100644
--- a/.github/workflows/ci_docs.yml
+++ b/.github/workflows/ci_docs.yml
@@ -70,53 +70,12 @@ jobs:
         shell: bash
         run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}"
 
-      - name: 'Get current csources version'
-        id: csources-version
+      - name: 'Build csourcesAny'
         shell: bash
-        run: |
-          sha=$(git ls-remote https://github.com/nim-lang/csources_v1 master | cut -f 1)
-          echo "::set-output name=sha::$sha"
-
-      - name: 'Get prebuilt csources from cache'
-        id: csources-cache
-        uses: actions/cache@v1
-        with:
-          path: bin
-          key: '${{ matrix.os }}-${{ steps.csources-version.outputs.sha }}'
-
-      - name: 'Checkout csources'
-        if: steps.csources-cache.outputs.cache-hit != 'true'
-        uses: actions/checkout@v2
-        with:
-          repository: nim-lang/csources_v1
-          path: csources
-
-      - name: 'Build 1-stage compiler from csources'
-        shell: bash
-        run: |
-          ext=
-          [[ '${{ runner.os }}' == 'Windows' ]] && ext=.exe
-          if [[ ! -x bin/nim-csources$ext ]]; then
-            ncpu=
-            case '${{ runner.os }}' in
-            'Linux')
-              ncpu=$(nproc)
-              ;;
-            'macOS')
-              ncpu=$(sysctl -n hw.ncpu)
-              ;;
-            'Windows')
-              ncpu=$NUMBER_OF_PROCESSORS
-              ;;
-            esac
-            [[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1
-
-            make -C csources -j $ncpu CC=gcc
-            cp bin/nim{,-csources}$ext
-          else
-            echo 'Cache hit, using prebuilt csources'
-            cp bin/nim{-csources,}$ext
-          fi
+        run: . ci/funs.sh && nimBuildCsourcesIfNeeded CC=gcc
+          # was previously using caching via `actions/cache@v1` but this wasn't
+          # used in other CI pipelines and it's unclear the added complexity
+          # was worth the saving; can be revisited if needed.
 
       - name: 'Build koch'
         shell: bash
:47:40 +0200 several additions in mouse handling ;)' href='/acidbong/suckless/dwm/commit/dwm.1?h=2.3&id=901b3ed9b7e3e4c7542797301ae2442938bcea20'>901b3ed ^
1076f2b

901b3ed ^
0c3544d ^
2b35fae ^

a3e3f0b ^

2b35fae ^
292ccc4 ^




4bb89e2 ^
292ccc4 ^
2b35fae ^
72655f0 ^

4bd0d33 ^
72655f0 ^


dbcf87c ^
72655f0 ^
72655f0 ^

dbcf87c ^
72655f0 ^
3af6434 ^

dbcf87c ^
3af6434 ^
72655f0 ^

dbcf87c ^
72655f0 ^


dbcf87c ^
72655f0 ^

7b5638f ^




dbcf87c ^
1549faf ^


3af6434 ^

dbcf87c ^
1549faf ^
45aea23 ^



1549faf ^

dbcf87c ^
1549faf ^


dbcf87c ^
1549faf ^
ba59bc8 ^
4bb89e2 ^



1549faf ^
3af6434 ^

dbcf87c ^
2b35fae ^
0c3544d ^
0e5c819 ^
4bd0d33 ^
0e5c819 ^
dbcf87c ^
0e5c819 ^
4bd0d33 ^






0e5c819 ^
4bd0d33 ^
0e5c819 ^
dbcf87c ^
0c3544d ^

dc5c070 ^

4bb89e2 ^








5ef6ef1 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138