Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Use github actions instead of travis
Browse files Browse the repository at this point in the history
Change-Id: I8a03ca383c53bbcacc403cb954fc2ec2af8fe33d
  • Loading branch information
danw committed Jun 15, 2020
1 parent fe2fa04 commit bb7ecb7
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 59 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,47 @@
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.14', '1.13' ]
name: Build and test on go ${{ matrix.go }}
steps:

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2.0.3
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code
uses: actions/checkout@v2.2.0

- name: Install ninja
run: |
mkdir -p ${GITHUB_WORKSPACE}/ninja-bin; cd ${GITHUB_WORKSPACE}/ninja-bin
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
unzip ninja-linux.zip
rm ninja-linux.zip
echo "::add-path::${GITHUB_WORKSPACE}/ninja-bin"
- name: Run gofmt
run: ./.gofmt.sh

- name: Test
run: go test ./...

- name: Test with race detector
run: go test -race -short ./...

- run: ./tests/test.sh
- run: ./tests/test_tree_tests.sh
- run: ./tests/test_tree_tests.sh -t
File renamed without changes.
9 changes: 0 additions & 9 deletions .travis.fix-fork.sh

This file was deleted.

22 changes: 0 additions & 22 deletions .travis.install-ninja.sh

This file was deleted.

27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
Blueprint Build System
======================
[![Build Status](https://travis-ci.org/google/blueprint.svg?branch=master)](https://travis-ci.org/google/blueprint)
[![build](https://github.com/danw/blueprint/workflows/build/badge.svg)](https://github.com/google/blueprint/actions)

Blueprint is a meta-build system that reads in Blueprints files that describe
modules that need to be built, and produces a
Expand Down

0 comments on commit bb7ecb7

Please sign in to comment.