Skip to content

some reverting

some reverting #130

Workflow file for this run

name: Build
on:
push:
branches: [ master ] #Everytime master branch is updated
# paths: ['.github/workflows/*', 'src/*'] #only when these files are modifed
pull_request:
branches: [ master ] #for every pull request going to master
# paths: ['.github/workflows/*', 'src/*'] #only when these files are modifed
jobs:
makerelease:
runs-on: ubuntu-latest
outputs:
url: ${{ steps.create_release.outputs.upload_url }}
version: 2.5.${{ github.run_number }}
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: 2.5.${{ github.run_number }}
release_name: SupraFit 2.5.${{ github.run_number }}
draft: false
prerelease: true
- name: Clear older release
id: clear_releases
uses: dev-drprasad/[email protected]
with:
# repo: c/<repoName> # defaults to current repo
keep_latest: 10
delete_tag_pattern: 2.5 # defaults to ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux:
needs: [makerelease]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
modules: 'addons.qtcharts'
version: 6.6.3
- name: Update Modules and Build
run: sh scripts/build_unix_github.sh
- name: Install more libs
run: sudo apt-get install -y libxcb-icccm4 libxcb*
- name: Deploy
run: sh scripts/deploy_unix_dir.sh
- name: Upload Linux
id: upload-release-asset-linux
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.makerelease.outputs.url }}
asset_path: ./release/SupraFit.tar.gz
asset_name: SupraFit-nightly-${{ needs.makerelease.outputs.version }}-x86_64-Linux.tar.gz
asset_content_type: application/zip
- name: Deploy Appimage
run: sh scripts/deploy_unix.sh
- name: Upload Linux Appimage
id: upload-release-asset-linux2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.makerelease.outputs.url }}
asset_path: ./release/bin/linux/SupraFit-nightly-x86_64.AppImage
asset_name: SupraFit-nightly-${{ needs.makerelease.outputs.version }}-x86_64-Linux.AppImage
asset_content_type: application/zip
windows:
needs: [makerelease]
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Set up MinGW
uses: e-t-l/setup-mingw@patch-1
with:
platform: x64
version: 12.1.0
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
modules: 'addons.qtcharts'
version: 6.6.3
arch: 'win64_mingw'
- name: Update Modules and Build
run: scripts/build_windows_x64_mingw.bat
- name: Upload Windows
id: upload-release-asset-windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.makerelease.outputs.url }}
asset_path: build_x64\bin\win\SupraFit.zip
asset_name: SupraFit-nightly-${{ needs.makerelease.outputs.version }}-x86_x64-Windows.zip
asset_content_type: application/zip
macOS:
needs: [makerelease]
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
modules: 'addons.qtcharts'
version: 6.6.3
- name: Update Modules and Build
run: sh scripts/build_macOS_github.sh
- name: Upload macOS
id: upload-release-asset-macOS
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.makerelease.outputs.url }}
asset_path: ./release/bin/macOS/SupraFit.dmg
asset_name: SupraFit-nightly-${{ needs.makerelease.outputs.version }}-macOS.dmg
asset_content_type: application/x-apple-diskimage