mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
50 lines
988 B
YAML
50 lines
988 B
YAML
name: ci build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
ubuntu-cmake:
|
|
name: ubuntu
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: setup
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install cmake g++ libgtest-dev make libssl-dev
|
|
sudo apt-get install redis valgrind
|
|
- uses: actions/checkout@v2
|
|
- name: make
|
|
run: make
|
|
- name: make check
|
|
run: make check
|
|
- name: make tutorial
|
|
run: make tutorial
|
|
|
|
fedora-cmake:
|
|
name: fedora
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: fedora:latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: cat /etc/os-release
|
|
- name: install dependencies
|
|
run: |
|
|
dnf -y update
|
|
dnf -y install cmake gcc-c++ gtest-devel make
|
|
dnf -y install openssl-devel redis valgrind
|
|
- name: make
|
|
run: make
|
|
- name: make check
|
|
run: make check
|
|
- name: make tutorial
|
|
run: make tutorial
|
|
|