瀏覽代碼

Switch from Travis CI to GitHub Actions

While Travis CI has served us well in the past, the recent changes made it unusable. Farewell Travis CI!
master
ooxi 3 年之前
父節點
當前提交
69b2c47089
共有 5 個檔案被更改,包括 46 行新增15 行删除
  1. +24
    -0
      .github/workflows/ci.yaml
  2. +21
    -0
      .mc/rebuild.sh
  3. +0
    -0
      .mc/ubuntu:16.04.yaml
  4. +0
    -14
      .travis.yml
  5. +1
    -1
      README.md

+ 24
- 0
.github/workflows/ci.yaml 查看文件

@@ -0,0 +1,24 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull
# request events but only for the main branch
on:
push:
branches:
- master
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 15 * *'


jobs:
ci:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Build and TesT
run: npx --package mini-cross@0.15.2 mc --no-tty ubuntu:16.04 .mc/rebuild.sh


+ 21
- 0
.mc/rebuild.sh 查看文件

@@ -0,0 +1,21 @@
#!/bin/bash

set -e


# @see https://stackoverflow.com/a/1482133
DIRECTORY_OF_SCRIPT=`dirname "$(readlink -f "$0")"`

SOURCE_DIRECTORY="${DIRECTORY_OF_SCRIPT}/.."
BUILD_DIRECTORY="${DIRECTORY_OF_SCRIPT}/../build"


if [ -d "${BUILD_DIRECTORY}" ]; then
rm -rf "${BUILD_DIRECTORY}"
fi
mkdir "${BUILD_DIRECTORY}"

(cd "${BUILD_DIRECTORY}" && cmake -DCMAKE_BUILD_TYPE=Release ..)
make --directory "${BUILD_DIRECTORY}" --silent
make --directory "${BUILD_DIRECTORY}" --silent test


mc.yaml → .mc/ubuntu:16.04.yaml 查看文件


+ 0
- 14
.travis.yml 查看文件

@@ -1,14 +0,0 @@
language: c
compiler:
- gcc
- g++
before_install:
- sudo apt-get update
- sudo apt-get install cmake valgrind
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DXML_PARSER_VERBOSE=On ..
- make
after_script:
- make test


+ 1
- 1
README.md 查看文件

@@ -6,7 +6,7 @@ which also just parses an xml subset, [xml.c](https://github.com/ooxi/xml.c) is
a simple, small and self contained xml parser in one file. Ideal for embedding a simple, small and self contained xml parser in one file. Ideal for embedding
into other projects without the need for big external dependencies. into other projects without the need for big external dependencies.


[![Build Status](https://secure.travis-ci.org/ooxi/xml.c.png)](http://travis-ci.org/ooxi/xml.c) [![Build Status](https://github.com/ooxi/xml.c/actions/workflows/ci.yaml/badge.svg)](https://github.com/ooxi/xml.c/actions)




Downloads Downloads


||||||
x
 
000:0
Loading…
取消
儲存