From df8651ae2c6287bd21e0ea7b4d4dfa3c8eed160c Mon Sep 17 00:00:00 2001 From: Jonathan Lloyd Date: Mon, 2 Nov 2020 22:16:33 +0000 Subject: [PATCH 1/2] Replace travis config with github actions --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .travis.yml | 4 ---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9e9832c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: CI + run: ./scripts/docker-ci diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 29f6eb6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -script: ./scripts/docker-ci -services: - - docker -sudo: required From 1ce61abc9175de2de5c50998785138b49553b37d Mon Sep 17 00:00:00 2001 From: Jonathan Lloyd Date: Mon, 2 Nov 2020 22:31:15 +0000 Subject: [PATCH 2/2] Upload rif artifact --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e9832c..6657ffa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,13 +8,26 @@ on: jobs: - build: - + test: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 with: fetch-depth: "0" - - name: CI + - name: Test run: ./scripts/docker-ci + + build-and-push: + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: Build + run: ./scripts/build + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: rif binary + path: ./build/rif