mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 17:23:26 +01:00
Integrate desktop builds in ci workflow
This commit is contained in:
parent
d07b40ccef
commit
9f0e5641ab
1 changed files with 49 additions and 0 deletions
49
.github/workflows/ci.yml
vendored
49
.github/workflows/ci.yml
vendored
|
@ -68,6 +68,9 @@ jobs:
|
||||||
build-artifacts:
|
build-artifacts:
|
||||||
name: "build/artifacts (${{ matrix.os }})"
|
name: "build/artifacts (${{ matrix.os }})"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
GOPATH: ${{ github.workspace }}
|
||||||
|
GO111MODULE: off
|
||||||
|
|
||||||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
|
@ -102,6 +105,52 @@ jobs:
|
||||||
name: editor-profiling
|
name: editor-profiling
|
||||||
path: build/profiling
|
path: build/profiling
|
||||||
|
|
||||||
|
# Build, test and upload desktop CLI artifacts
|
||||||
|
- 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:
|
||||||
|
repository: maputnik/desktop
|
||||||
|
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/
|
||||||
|
|
||||||
# build and test the editor in standalone-chrome
|
# build and test the editor in standalone-chrome
|
||||||
test_selenium_standalone_chrome:
|
test_selenium_standalone_chrome:
|
||||||
name: "test/standalone-chrome (${{ matrix.os }})"
|
name: "test/standalone-chrome (${{ matrix.os }})"
|
||||||
|
|
Loading…
Reference in a new issue