diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8434382..3d2b5e2 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -12,9 +12,7 @@ jobs: steps: - name: Generate release tag id: tag - run: | - TAGNAME=`curl https://ci.appveyor.com/api/projects/ozkanpakdil/big-file-editor|jq -r '.build.buildNumber'` - echo "::set-output name=release_tag::1.0.$TAGNAME" + run: echo "::set-output name=release_tag::1.0.${{ github.run_number }}" - name: Checkout uses: actions/checkout@v2 - name: Install Qt diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a4674d2..fb9f21b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,4 +1,4 @@ -name: OS X +name: MacOS CI on: push: @@ -8,15 +8,13 @@ on: jobs: qt5: name: Qt5 build - runs-on: macos-10.15 + runs-on: macos-latest steps: - name: Set environment variables run: echo "PATH=/usr/local/opt/qt@5/bin:$PATH" >> $GITHUB_ENV - name: Generate release tag id: tag - run: | - TAGNAME=`curl https://ci.appveyor.com/api/projects/ozkanpakdil/big-file-editor|jq -r '.build.buildNumber'` - echo "::set-output name=release_tag::1.0.$TAGNAME" + run: echo "::set-output name=release_tag::1.0.${{ github.run_number }}" - name: Checkout uses: actions/checkout@v2 - name: Install dependencies diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fa5faf7..72150b6 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -5,19 +5,20 @@ on: [push] jobs: build: runs-on: windows-latest - steps: + - name: Generate release tag + id: tag + run: echo "::set-output name=release_tag::1.0.${{ github.run_number }}" - name: Checkout code uses: actions/checkout@v2 - name: Install build tools - run: choco install -y InnoSetup qt5-default visualstudio2022community + run: choco install -y InnoSetup qt5-default make #visualstudio2022buildtools windows-sdk-10.1 VisualCppBuildTools vcredist140 - name: Build shell: cmd run: | - CALL "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 - SET PATH=%PATH%;C:\Qt\5.15.2\mingw81_64\bin;%CACHE_DIR%\jom + SET PATH=%PATH%;C:\Qt\5.15.2\mingw81_64\bin; qmake big-file-editor.pro - nmake + make del /q release\*.h release\*.cpp release\*.o windeployqt release\big-file-editor.exe @@ -32,13 +33,11 @@ jobs: name: setupbigfileeditor path: setupbigfileeditor.exe - - name: Deploy to GitHub - if: github.ref == 'refs/heads/master' - uses: actions/upload-release-asset@v1 + - name: Release with Notes + uses: softprops/action-gh-release@v1 + with: + files: | + ./setupbigfileeditor.exe + tag_name: ${{ steps.tag.outputs.release_tag }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./setupbigfileeditor.exe - asset_name: setupbigfileeditor.exe - asset_content_type: application/octet-stream \ No newline at end of file diff --git a/README.md b/README.md index 9de8076..913886c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -Windows:[![Build status](https://ci.appveyor.com/api/projects/status/je31oh7roigybhsx?svg=true)](https://ci.appveyor.com/project/ozkanpakdil/big-file-editor) -Linux&OSX:[![Build Status](https://travis-ci.org/ozkanpakdil/big-file-editor.svg?branch=master)](https://travis-ci.org/ozkanpakdil/big-file-editor) +Windows:[![Windows CI](https://github.com/ozkanpakdil/big-file-editor/actions/workflows/windows.yml/badge.svg)](https://github.com/ozkanpakdil/big-file-editor/actions/workflows/windows.yml) +Linux:[![linux build](https://github.com/ozkanpakdil/big-file-editor/actions/workflows/linux.yml/badge.svg)](https://github.com/ozkanpakdil/big-file-editor/actions/workflows/linux.yml) +Macos:[![Macos CI](https://github.com/ozkanpakdil/big-file-editor/actions/workflows/macos.yml/badge.svg)](https://github.com/ozkanpakdil/big-file-editor/actions/workflows/macos.yml) -this project's aim is to help who needs to open up a big/large file (bigger then GB) and -have to browse on it mostly on windows, or you may use it under linux :) +This project's aim is to help who needs to open up a big/large file (more than GB) and help to browse on it. simple demo from linux machine. http://youtu.be/nYun58jPUtw @@ -10,7 +10,7 @@ http://youtu.be/nYun58jPUtw if you want to download compiled version visit https://github.com/ozkanpakdil/big-file-editor/releases -Implemented Tasks +## Implemented Tasks - Ctrl+O open a very big/large file. - mouse wheel and scroll down in the file. @@ -21,4 +21,4 @@ Implemented Tasks - Ctrl+F search in the file. - Ctrl+Shift+H replace in the file. -How to compile in windows check [here](./.appveyor.yml). \ No newline at end of file +How to compile in windows check [here](./.github/workflows/windows.yml). \ No newline at end of file