Moved CI from Travis to Github Actions (#198)
* Create ci.yml * removed travis build file * changed docker image * Update readme to include CI results
This commit is contained in:
parent
ac210fb634
commit
93d9b73867
3 changed files with 32 additions and 21 deletions
31
.github/workflows/ci.yml
vendored
Normal file
31
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
# Controls when the action will run.
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: nimlang/nim
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Tests
|
||||||
|
run: |
|
||||||
|
nimble develop -y
|
||||||
|
nim c -r tests/tester.nim
|
||||||
20
.travis.yml
20
.travis.yml
|
|
@ -1,20 +0,0 @@
|
||||||
sudo: false
|
|
||||||
language: c
|
|
||||||
os: linux
|
|
||||||
install:
|
|
||||||
- git clone https://github.com/nim-lang/nim
|
|
||||||
- cd nim
|
|
||||||
- git clone --depth 1 https://github.com/nim-lang/csources.git
|
|
||||||
- cd csources
|
|
||||||
- sh build.sh
|
|
||||||
- cd ../
|
|
||||||
- bin/nim c koch
|
|
||||||
- ./koch boot -d:release
|
|
||||||
- ./koch tools
|
|
||||||
- cd ..
|
|
||||||
before_script:
|
|
||||||
- set -e
|
|
||||||
- export PATH=$(pwd)/nim/bin:$(pwd):$PATH
|
|
||||||
script:
|
|
||||||
- nimble develop -y
|
|
||||||
- nim c -r tests/tester.nim
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||

|

|
||||||
|
|
||||||
    
|
    
|
||||||
|
|
||||||
# Karax
|
# Karax
|
||||||
Karax is a framework for developing single page applications in Nim.
|
Karax is a framework for developing single page applications in Nim.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue