pull/773/merge
hunterlong 2020-08-13 22:02:35 -07:00
parent 5ce7f32fec
commit 4d6893d7c9
1 changed files with 10 additions and 11 deletions

View File

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