mirror of https://github.com/statping/statping
workflow
parent
5ce7f32fec
commit
4d6893d7c9
|
@ -8,7 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
compile-frontend:
|
frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -63,18 +63,16 @@ jobs:
|
||||||
aws s3 cp source.tar.gz s3://assets.statping.com/commit/${{ github.sha }}/
|
aws s3 cp source.tar.gz s3://assets.statping.com/commit/${{ github.sha }}/
|
||||||
rm -rf source.tar.gz
|
rm -rf source.tar.gz
|
||||||
|
|
||||||
compile-binaries:
|
build:
|
||||||
needs: compile-frontend
|
needs: frontend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [windows, linux, darwin]
|
platform: [windows, linux, darwin]
|
||||||
arch: [386, amd64, arm-7, arm-6, arm64]
|
arch: [386, amd64, arm-7, arm-6, arm64]
|
||||||
exclude:
|
exclude:
|
||||||
- platform: darwin
|
- platform: [windows, darwin]
|
||||||
arch: [386, arm-7, arm-6, arm64]
|
arch: [386, arm-7, arm-6, arm64]
|
||||||
- platform: windows
|
|
||||||
arch: [arm-7, arm-6, arm64]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -122,7 +120,7 @@ jobs:
|
||||||
run: pwd && ls && cd build && ls
|
run: pwd && ls && cd build && ls
|
||||||
|
|
||||||
test-binary-on-platform:
|
test-binary-on-platform:
|
||||||
needs: compile-binaries
|
needs: build
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest,ubuntu-latest,windows-latest]
|
os: [macos-latest,ubuntu-latest,windows-latest]
|
||||||
|
@ -145,21 +143,22 @@ jobs:
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: statping-${{ env.PLATFORM }}-amd64
|
name: statping-${{ env.PLATFORM }}-amd64
|
||||||
path: ./
|
path: ./bin
|
||||||
|
|
||||||
- name: Fix statping permissions
|
- name: Fix statping permissions
|
||||||
run: |
|
run: |
|
||||||
mv statping-${{ env.PLATFORM }}-amd64 statping
|
mv bin/statping-${{ env.PLATFORM }}-amd64 bin/statping
|
||||||
chmod +x statping
|
chmod +x statping
|
||||||
|
mv statping /usr/local/bin/
|
||||||
|
|
||||||
- name: Run 'statping version'
|
- name: Run 'statping version'
|
||||||
run: ./statping version
|
run: statping version
|
||||||
|
|
||||||
- name: Run Statping on port 80
|
- name: Run Statping on port 80
|
||||||
env:
|
env:
|
||||||
DB_CONN: sqlite
|
DB_CONN: sqlite
|
||||||
API_SECRET: demoapisecret123
|
API_SECRET: demoapisecret123
|
||||||
run: ./statping --port 80
|
run: statping --port 80
|
||||||
|
|
||||||
|
|
||||||
# - name: Production Ready Binaries
|
# - name: Production Ready Binaries
|
||||||
|
|
Loading…
Reference in New Issue