From 4d6893d7c9eecca65a0febb2c960bb6c634b921d Mon Sep 17 00:00:00 2001 From: hunterlong Date: Thu, 13 Aug 2020 22:02:35 -0700 Subject: [PATCH] workflow --- .github/workflows/development.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 1d5d7486..3808be65 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -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