Skip to content

Commit 33ae2a0

Browse files
authored
Merge pull request #4 from ruivieira/rui-79
Add CI manifests
2 parents ae8ac13 + f4efccc commit 33ae2a0

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
image: ubuntu/latest
2+
packages:
3+
- curl
4+
- unzip
5+
sources:
6+
- https://git.sr.ht/~ruivieira/matplotnim
7+
tasks:
8+
- setup: |
9+
sudo apt-get update
10+
sudo apt-get install -y curl gcc
11+
export CHOOSENIM_NO_ANALYTICS=1
12+
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
13+
/home/build/.nimble/bin/choosenim stable
14+
- test: |
15+
export PATH=$HOME/.nimble/bin:$PATH
16+
cd matplotnim
17+
nim --version
18+
nimble test

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on: [push]
4+
jobs:
5+
linux:
6+
strategy:
7+
matrix:
8+
nim-channel: [stable, devel]
9+
runs-on: ubuntu-latest
10+
container: debian:buster
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Prepare
14+
run: |
15+
apt-get update
16+
apt-get install -y curl gcc
17+
export CHOOSENIM_NO_ANALYTICS=1
18+
curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
19+
export PATH=$HOME/.nimble/bin:$PATH
20+
choosenim ${{ matrix.nim-channel }}
21+
22+
- name: Test
23+
run: |
24+
export PATH=$HOME/.nimble/bin:$PATH
25+
nim --version
26+
nimble test

0 commit comments

Comments
 (0)