From cdcc61e23496b88cc1ebd313d21b36dac2cb3421 Mon Sep 17 00:00:00 2001 From: pathmapper <20856381+pathmapper@users.noreply.github.com> Date: Sun, 31 May 2020 21:04:11 +0200 Subject: [PATCH 1/3] Create go.yml --- .github/workflows/go.yml | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..7746c1d8 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,61 @@ +name: go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + env: + GOPATH: ${{ github.workspace }} + GO111MODULE: off + steps: + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ^1.14.x + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + with: + path: ./src/github.com/maputnik/desktop/ + + - name: Get style + run: wget https://maputnik.github.io/osm-liberty/style.json + + - name: Make + run: cd src/github.com/maputnik/desktop/ && make + + - name: Test --help + run: ./src/github.com/maputnik/desktop/bin/linux/maputnik --help + + - name: Test --version + run: ./src/github.com/maputnik/desktop/bin/linux/maputnik --version + + - name: Test --watch + run: ./src/github.com/maputnik/desktop/bin/linux/maputnik --watch --file style.json & sleep 5; kill $! + + - name: Artifacts/linux + uses: actions/upload-artifact@v1 + with: + name: maputnik-linux + path: ./src/github.com/maputnik/desktop/bin/linux/ + + - name: Artifacts/darwin + uses: actions/upload-artifact@v1 + with: + name: maputnik-darwin + path: ./src/github.com/maputnik/desktop/bin/darwin/ + + - name: Artifacts/windows + uses: actions/upload-artifact@v1 + with: + name: maputnik-windows + path: ./src/github.com/maputnik/desktop/bin/windows/ From 1e7b6e809c0039e4c8ccc2377bf8b6fe3c93e399 Mon Sep 17 00:00:00 2001 From: pathmapper <20856381+pathmapper@users.noreply.github.com> Date: Sun, 31 May 2020 21:05:00 +0200 Subject: [PATCH 2/3] Remove Travis --- .travis.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c62a2151..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -os: -- linux -language: go -go: -- 1.14.x -addons: - artifacts: - paths: - - bin -install: -- wget https://maputnik.github.io/osm-liberty/style.json -script: -- make -- ./bin/linux/maputnik --help -- ./bin/linux/maputnik --version -- ./bin/linux/maputnik --watch --file style.json & sleep 5; kill $! From 6d00214f55802d96d3faaa13c83c9944e678b208 Mon Sep 17 00:00:00 2001 From: pathmapper <20856381+pathmapper@users.noreply.github.com> Date: Sun, 31 May 2020 21:09:02 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b3f1c816..6b3393f7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Maputnik Desktop [![Build Status](https://travis-ci.org/maputnik/desktop.svg?branch=master)](https://travis-ci.org/maputnik/desktop) +# Maputnik Desktop [![GitHub CI status](https://github.com/maputnik/desktop/workflows/go/badge.svg)](https://github.com/maputnik/desktop/actions?query=workflow%3Ago) ---