From c257870c054cd893bd8a5c01a7a7865a8993f1ee Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 6 Mar 2021 19:12:05 +0100 Subject: Installs proper nightly deployment. --- .github/workflows/build.yml | 46 +------------------------------------------ .github/workflows/nightly.yml | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/nightly.yml (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db284e6..2386221 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,51 +45,7 @@ jobs: - name: make run: make build/kristall - - - name: Prepare deployment - working-directory: build - run: macdeployqt kristall.app -dmg - - - name: display - run: | - uname -a - file build/kristall.app - ls build - - - uses: actions/upload-artifact@v2 - with: - name: Kristall.app - path: build/kristall.dmg - - - name: Deploy with SCP - uses: noobly314/deploy-with-scp@v1 - with: - src: build/kristall.dmg - dest: kristall/Kristall-nightly-macos-x86_64.dmg - username: generic-ci - server-ip: random-projects.net - ssh-key: ${{ secrets.PRIVATE_KEY }} # - - # - name: Deploy via SCP - # uses: horochx/deploy-via-scp@master - # with: - # local: build/kristall.app - # remote: kristall/Kristall-nightly-macos-x86_64.app - # host: random-projects.net - # port: 22 - # user: generic-ci - # key: ${{ secrets.PRIVATE_KEY }} # - # - # - name: Deploy via SCP - # uses: garygrossgarten/github-action-scp@release - # with: - # host: random-projects.net - # username: generic-ci - # privateKey: ${{ secrets.PRIVATE_KEY }} - # local: "build/kristall.app" - # remote: "kristall/Kristall-nightly-macos-x86_64.app" -# - + # Disabled until both aqinstall and install-qt-action support the fixes… # build_windows: # runs-on: windows-latest diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..6bdb10a --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,34 @@ +name: Nightly Deploy + +on: + schedule: + - cron: "0 3 * * *" # run at 3 AM UTC + +jobs: + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies via brew + run: brew install qt@5 openssl + + - uses: jurplel/install-qt-action@v2 + with: + version: "5.12.8" + + - name: make + run: make build/kristall + + - name: Prepare deployment + working-directory: build + run: macdeployqt kristall.app -dmg + + - name: Deploy with SCP + uses: noobly314/deploy-with-scp@v1 + with: + src: build/kristall.dmg + dest: kristall/Kristall-nightly-macos-x86_64.dmg + username: generic-ci + server-ip: random-projects.net + ssh-key: ${{ secrets.PRIVATE_KEY }} # -- cgit v1.2.3