Skip to content

Commit 4623385

Browse files
committed
undisable CI
1 parent d47affc commit 4623385

File tree

6 files changed

+350
-25
lines changed

6 files changed

+350
-25
lines changed

.builds/freebsd.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# see https://man.sr.ht/builds.sr.ht/compatibility.md#freebsd
2+
image: freebsd/latest
3+
packages:
4+
- databases/sqlite3
5+
- devel/boehm-gc-threaded
6+
- devel/pcre
7+
- devel/sdl20
8+
- devel/sfml
9+
- www/node
10+
- devel/gmake
11+
sources:
12+
- https://github.com/nim-lang/Nim
13+
environment:
14+
CC: /usr/bin/clang
15+
tasks:
16+
- setup: |
17+
cd Nim
18+
git clone --depth 1 -q https://github.com/nim-lang/csources.git
19+
gmake -C csources -j $(sysctl -n hw.ncpu)
20+
bin/nim c --skipUserCfg --skipParentCfg koch
21+
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv
22+
- test: |
23+
cd Nim
24+
if ! ./koch runCI; then
25+
nim c -r tools/ci_testresults.nim
26+
exit 1
27+
fi
28+
triggers:
29+
- action: email
30+
condition: failure
31+
to: Andreas Rumpf <rumpf_a@web.de>

.builds/openbsd_0.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## do not edit directly; auto-generated by `nim r tools/ci_generate.nim`
2+
3+
image: openbsd/latest
4+
packages:
5+
- gmake
6+
- sqlite3
7+
- node
8+
- boehm-gc
9+
- pcre
10+
- sfml
11+
- sdl2
12+
- libffi
13+
sources:
14+
- https://github.com/nim-lang/Nim
15+
environment:
16+
NIM_TESTAMENT_BATCH: "0_2"
17+
CC: /usr/bin/clang
18+
tasks:
19+
- setup: |
20+
cd Nim
21+
git clone --depth 1 -q https://github.com/nim-lang/csources.git
22+
gmake -C csources -j $(sysctl -n hw.ncpuonline)
23+
bin/nim c koch
24+
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv
25+
- test: |
26+
cd Nim
27+
if ! ./koch runCI; then
28+
nim c -r tools/ci_testresults.nim
29+
exit 1
30+
fi
31+
triggers:
32+
- action: email
33+
condition: failure
34+
to: Andreas Rumpf <rumpf_a@web.de>

.builds/openbsd_1.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## do not edit directly; auto-generated by `nim r tools/ci_generate.nim`
2+
3+
image: openbsd/latest
4+
packages:
5+
- gmake
6+
- sqlite3
7+
- node
8+
- boehm-gc
9+
- pcre
10+
- sfml
11+
- sdl2
12+
- libffi
13+
sources:
14+
- https://github.com/nim-lang/Nim
15+
environment:
16+
NIM_TESTAMENT_BATCH: "1_2"
17+
CC: /usr/bin/clang
18+
tasks:
19+
- setup: |
20+
cd Nim
21+
git clone --depth 1 -q https://github.com/nim-lang/csources.git
22+
gmake -C csources -j $(sysctl -n hw.ncpuonline)
23+
bin/nim c koch
24+
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv
25+
- test: |
26+
cd Nim
27+
if ! ./koch runCI; then
28+
nim c -r tools/ci_testresults.nim
29+
exit 1
30+
fi
31+
triggers:
32+
- action: email
33+
condition: failure
34+
to: Andreas Rumpf <rumpf_a@web.de>

.github/workflows/ci_docs.yml

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
name: Nim Docs CI
2+
on:
3+
push:
4+
paths:
5+
- 'compiler/docgen.nim'
6+
- 'compiler/renderverbatim.nim'
7+
- 'config/nimdoc.cfg'
8+
- 'doc/**.rst'
9+
- 'doc/nimdoc.css'
10+
- 'lib/**.nim'
11+
- 'nimdoc/testproject/expected/testproject.html'
12+
- 'tools/dochack/dochack.nim'
13+
- 'tools/kochdocs.nim'
14+
- '.github/workflows/ci_docs.yml'
15+
- 'koch.nim'
16+
pull_request:
17+
# Run only on changes on these files.
18+
paths:
19+
- 'compiler/docgen.nim'
20+
- 'compiler/renderverbatim.nim'
21+
- 'config/nimdoc.cfg'
22+
- 'doc/**.rst'
23+
- 'doc/nimdoc.css'
24+
- 'lib/**.nim'
25+
- 'nimdoc/testproject/expected/testproject.html'
26+
- 'tools/dochack/dochack.nim'
27+
- 'tools/kochdocs.nim'
28+
- '.github/workflows/ci_docs.yml'
29+
- 'koch.nim'
30+
31+
jobs:
32+
build:
33+
if: |
34+
!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[skip ci]')
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
target: [linux, windows, osx]
39+
include:
40+
- target: linux
41+
os: ubuntu-18.04
42+
- target: windows
43+
os: windows-2019
44+
- target: osx
45+
os: macos-10.15
46+
47+
name: ${{ matrix.target }}
48+
runs-on: ${{ matrix.os }}
49+
50+
steps:
51+
- name: 'Checkout'
52+
uses: actions/checkout@v2
53+
54+
- name: 'Install build dependencies (macOS)'
55+
if: runner.os == 'macOS'
56+
run: brew install make
57+
58+
- name: 'Install build dependencies (Windows)'
59+
if: runner.os == 'Windows'
60+
shell: bash
61+
run: |
62+
mkdir dist
63+
curl -L https://nim-lang.org/download/mingw64.7z -o dist/mingw64.7z
64+
curl -L https://nim-lang.org/download/dlls.zip -o dist/dlls.zip
65+
7z x dist/mingw64.7z -odist
66+
7z x dist/dlls.zip -obin
67+
echo "${{ github.workspace }}/dist/mingw64/bin" >> "${GITHUB_PATH}"
68+
69+
- name: 'Add build binaries to PATH'
70+
shell: bash
71+
run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}"
72+
73+
- name: 'Get current csources version'
74+
id: csources-version
75+
shell: bash
76+
run: |
77+
sha=$(git ls-remote https://github.com/nim-lang/csources master | cut -f 1)
78+
echo "::set-output name=sha::$sha"
79+
80+
- name: 'Get prebuilt csources from cache'
81+
id: csources-cache
82+
uses: actions/cache@v1
83+
with:
84+
path: bin
85+
key: '${{ matrix.os }}-${{ steps.csources-version.outputs.sha }}'
86+
87+
- name: 'Checkout csources'
88+
if: steps.csources-cache.outputs.cache-hit != 'true'
89+
uses: actions/checkout@v2
90+
with:
91+
repository: nim-lang/csources
92+
path: csources
93+
94+
- name: 'Build 1-stage compiler from csources'
95+
shell: bash
96+
run: |
97+
ext=
98+
[[ '${{ runner.os }}' == 'Windows' ]] && ext=.exe
99+
if [[ ! -x bin/nim-csources$ext ]]; then
100+
ncpu=
101+
case '${{ runner.os }}' in
102+
'Linux')
103+
ncpu=$(nproc)
104+
;;
105+
'macOS')
106+
ncpu=$(sysctl -n hw.ncpu)
107+
;;
108+
'Windows')
109+
ncpu=$NUMBER_OF_PROCESSORS
110+
;;
111+
esac
112+
[[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1
113+
114+
make -C csources -j $ncpu CC=gcc
115+
cp bin/nim{,-csources}$ext
116+
else
117+
echo 'Cache hit, using prebuilt csources'
118+
cp bin/nim{-csources,}$ext
119+
fi
120+
121+
- name: 'Build koch'
122+
shell: bash
123+
run: nim c koch
124+
125+
- name: 'Build the real compiler'
126+
shell: bash
127+
run: ./koch boot -d:release
128+
129+
- name: 'Build documentation'
130+
shell: bash
131+
run: ./koch doc --git.commit:devel
132+
133+
- name: 'Publish documentation to Github Pages'
134+
if: |
135+
github.event_name == 'push' && github.ref == 'refs/heads/devel' &&
136+
matrix.target == 'linux'
137+
uses: crazy-max/ghaction-github-pages@v1
138+
with:
139+
build_dir: doc/html
140+
env:
141+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci_packages.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Packages CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
if: |
7+
!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[skip ci]')
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-18.04, macos-10.15]
12+
cpu: [amd64]
13+
batch: ["0_3", "1_3", "2_3"] # list of `index_num`
14+
name: '${{ matrix.os }} (batch: ${{ matrix.batch }})'
15+
runs-on: ${{ matrix.os }}
16+
env:
17+
NIM_TEST_PACKAGES: "1"
18+
NIM_TESTAMENT_BATCH: ${{ matrix.batch }}
19+
steps:
20+
- name: 'Checkout'
21+
uses: actions/checkout@v2
22+
- name: 'Checkout csources'
23+
uses: actions/checkout@v2
24+
with:
25+
repository: nim-lang/csources
26+
path: csources
27+
28+
- name: 'Install node.js 12.x'
29+
uses: actions/setup-node@v1
30+
with:
31+
node-version: '12.x'
32+
- name: 'Install dependencies (Linux amd64)'
33+
if: runner.os == 'Linux' && matrix.cpu == 'amd64'
34+
run: |
35+
sudo apt-fast update -qq
36+
DEBIAN_FRONTEND='noninteractive' \
37+
sudo apt-fast install --no-install-recommends -yq \
38+
libcurl4-openssl-dev libgc-dev libsdl1.2-dev libsfml-dev \
39+
valgrind libc6-dbg libblas-dev xorg-dev
40+
- name: 'Install dependencies (macOS)'
41+
if: runner.os == 'macOS'
42+
run: brew install boehmgc make sfml gtk+3
43+
- name: 'Install dependencies (Windows)'
44+
if: runner.os == 'Windows'
45+
shell: bash
46+
run: |
47+
mkdir dist
48+
curl -L https://nim-lang.org/download/mingw64.7z -o dist/mingw64.7z
49+
curl -L https://nim-lang.org/download/dlls.zip -o dist/dlls.zip
50+
7z x dist/mingw64.7z -odist
51+
7z x dist/dlls.zip -obin
52+
echo "${{ github.workspace }}/dist/mingw64/bin" >> "${GITHUB_PATH}"
53+
54+
- name: 'Add build binaries to PATH'
55+
shell: bash
56+
run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}"
57+
58+
- name: 'Build csources'
59+
shell: bash
60+
run: |
61+
ncpu=
62+
case '${{ runner.os }}' in
63+
'Linux')
64+
ncpu=$(nproc)
65+
;;
66+
'macOS')
67+
ncpu=$(sysctl -n hw.ncpu)
68+
;;
69+
'Windows')
70+
ncpu=$NUMBER_OF_PROCESSORS
71+
;;
72+
esac
73+
[[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1
74+
75+
make -C csources -j $ncpu CC=gcc ucpu='${{ matrix.cpu }}'
76+
- name: 'Build koch'
77+
shell: bash
78+
run: nim c koch
79+
- name: 'Run CI'
80+
shell: bash
81+
run: ./koch runCI
82+
83+
- name: 'Show failed tests'
84+
if: failure()
85+
shell: bash
86+
run: nim c -r tools/ci_testresults.nim

azure-pipelines.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,34 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
# Linux_amd64:
18-
# vmImage: 'ubuntu-16.04'
19-
# CPU: amd64
17+
Linux_amd64:
18+
vmImage: 'ubuntu-16.04'
19+
CPU: amd64
2020
Linux_i386:
2121
# bug #17325: fails on 'ubuntu-16.04' because it now errors with:
2222
# g++-multilib : Depends: gcc-multilib (>= 4:5.3.1-1ubuntu1) but it is not going to be installed
2323
vmImage: 'ubuntu-18.04'
2424
CPU: i386
25-
# OSX_amd64:
26-
# vmImage: 'macOS-10.15'
27-
# CPU: amd64
28-
# OSX_amd64_cpp:
29-
# vmImage: 'macOS-10.15'
30-
# CPU: amd64
31-
# NIM_COMPILE_TO_CPP: true
32-
# Windows_amd64_batch0_3:
33-
# vmImage: 'windows-2019'
34-
# CPU: amd64
35-
# # see also: `NIM_TEST_PACKAGES`
36-
# NIM_TESTAMENT_BATCH: "0_3"
37-
# Windows_amd64_batch1_3:
38-
# vmImage: 'windows-2019'
39-
# CPU: amd64
40-
# NIM_TESTAMENT_BATCH: "1_3"
41-
# Windows_amd64_batch2_3:
42-
# vmImage: 'windows-2019'
43-
# CPU: amd64
44-
# NIM_TESTAMENT_BATCH: "2_3"
25+
OSX_amd64:
26+
vmImage: 'macOS-10.15'
27+
CPU: amd64
28+
OSX_amd64_cpp:
29+
vmImage: 'macOS-10.15'
30+
CPU: amd64
31+
NIM_COMPILE_TO_CPP: true
32+
Windows_amd64_batch0_3:
33+
vmImage: 'windows-2019'
34+
CPU: amd64
35+
# see also: `NIM_TEST_PACKAGES`
36+
NIM_TESTAMENT_BATCH: "0_3"
37+
Windows_amd64_batch1_3:
38+
vmImage: 'windows-2019'
39+
CPU: amd64
40+
NIM_TESTAMENT_BATCH: "1_3"
41+
Windows_amd64_batch2_3:
42+
vmImage: 'windows-2019'
43+
CPU: amd64
44+
NIM_TESTAMENT_BATCH: "2_3"
4545

4646
pool:
4747
vmImage: $(vmImage)
@@ -76,8 +76,7 @@ jobs:
7676
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['CPU'], 'amd64'))
7777
7878
- bash: |
79-
# set -e # PRTEMP
80-
set -e # PRTEMP
79+
set -e
8180
. ci/funs.sh
8281
echo_run sudo dpkg --add-architecture i386
8382
# Downgrade llvm:

0 commit comments

Comments
 (0)