diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml deleted file mode 100644 index effd78d..0000000 --- a/.github/workflows/release-linux.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Automatic Linux Release - -on: release - -jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v3 - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_FLAGS="-O3 -DNDEBUG" - - - name: Build - run: cmake --build ${{github.workspace}}/build --config Release - - - name: Package - working-directory: ${{github.workspace}}/build/ - run: cpack - - - name: Get Info - working-directory: ${{github.workspace}}/build/ - run: | - file=$(ls -1 | grep sac-format | grep tar.gz | grep -v sha512) - version=$(echo $file | awk -F - '{print $3}') - arch=$(echo $file | awk -F - '{print $5}' | awk -F . '{print $1}') - echo "version=$version" >> $GITHUB_ENV - echo "arch=$arch" >> GITHUB_ENV - - - name: Upload tar.gz to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Linux-${{ env.arch }}.tar.gz application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload tar.gz.sha512 to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Linux-${{ env.arch }}.tar.gz.sha512 text/plain - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload .sh to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Linux-${{ env.arch }}.sh application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Uplaod .sh.sha512 to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Linux-${{ env.arch }}.sh.sha512 text/plain - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml deleted file mode 100644 index 7f0e0a4..0000000 --- a/.github/workflows/release-macos.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Automatic macOS Release - -on: release - -jobs: - build: - runs-on: macos-13 - - steps: - - uses: actions/checkout@v3 - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_FLAGS="-O3 -DNDEBUG" - - - name: Build - run: cmake --build ${{github.workspace}}/build --config Release - - - name: Package - working-directory: ${{github.workspace}}/build/ - run: cpack - - - name: Get Info - working-directory: ${{github.workspace}}/build/ - run: | - file=$(ls -1 | grep sac-format | grep tar.gz | grep -v sha512) - version=$(echo $file | awk -F - '{print $3}') - arch=$(echo $file | awk -F - '{print $5}' | awk -F . '{print $1}') - echo "version=$version" >> $GITHUB_ENV - echo "arch=$arch" >> GITHUB_ENV - - - name: Upload tar.gz to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Darwin-${{ env.arch }}.tar.gz application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload tar.gz.sha512 to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Darwin-${{ env.arch }}.tar.gz.sha512 text/plain - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload .sh to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Darwin-${{ env.arch }}.sh application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Uplaod .sh.sha512 to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format-${{ env.version }}-Darwin-${{ env.arch }}.sh.sha512 text/plain - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml deleted file mode 100644 index efb53d6..0000000 --- a/.github/workflows/release-windows.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Automatic Windows Release - -on: release - -jobs: - build: - runs-on: windows-2022 - - steps: - - uses: actions/checkout@v3 - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_FLAGS="/O2 /DNDEBUG /EHsc" - - - name: Build - run: cmake --build ${{github.workspace}}/build --config Release - - - name: Package - working-directory: ${{github.workspace}}/build/ - run: cpack - - - name: Upload exe to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format.exe application/vnd.microsoft.portable-executable - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload exe.sha512 to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{github.workspace}}/build/sac-format.exe.sha512 text/plain - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}