Quellcode durchsuchen

Rewrite workflows

tags/v1.8.0
Xerbo vor 2 Jahren
Ursprung
Commit
9d2f716f8a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 34103F6D8F11CEB0
5 geänderte Dateien mit 92 neuen und 90 gelöschten Zeilen
  1. +33
    -14
      .github/workflows/build.yml
  2. +58
    -15
      .github/workflows/release.yml
  3. +0
    -30
      .github/workflows/win_debug.yml
  4. +0
    -30
      .github/workflows/win_release.yml
  5. +1
    -1
      build_windows.bat

.github/workflows/debug.yml → .github/workflows/build.yml Datei anzeigen

@@ -1,14 +1,20 @@
name: x86 Debug
name: Build

on:
push:
branches:
- devel
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'

env:
BUILD_TYPE: Debug
BUILD_TYPE: Release

jobs:
build:
build_linux:
runs-on: ubuntu-latest

steps:
@@ -39,16 +45,29 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

# Tests are still WIP
# - name: Test
# working-directory: ${{runner.workspace}}/build
# shell: bash
# # Execute tests defined by the CMake configuration.
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C $BUILD_TYPE

- name: Upload compilied binary
uses: actions/upload-artifact@v2
with:
name: Debug build
name: Release build
path: ${{runner.workspace}}/build/aptdec

build_windows:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
# The user does not run as root
run: sudo apt install wget cmake make mingw-w64 git unzip libsndfile-dev

- name: Run build script
shell: bash
working-directory: ${{runner.workspace}}
run: cd $GITHUB_WORKSPACE && ./build_windows.sh $BUILD_TYPE

- name: Upload compilied binary
uses: actions/upload-artifact@v2
with:
name: Release build
path: ${{runner.workspace}}/aptdec/winbuild/aptdec-1.7.0.zip

+ 58
- 15
.github/workflows/release.yml Datei anzeigen

@@ -1,15 +1,35 @@
name: x86 Release
name: Build

on:
push:
branches:
- master
tags:
- 'v*'

env:
BUILD_TYPE: Release

jobs:
build:
prepare_release:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

steps:
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: A release wow
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_linux:
runs-on: ubuntu-latest
needs: [prepare_release]

steps:
- uses: actions/checkout@v2
@@ -39,16 +59,39 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

# Tests are still WIP
# - name: Test
# working-directory: ${{runner.workspace}}/build
# shell: bash
# # Execute tests defined by the CMake configuration.
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C $BUILD_TYPE
- name: Upload binary
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{runner.workspace}}/aptdec/build/aptdec
asset_name: aptdec_lin64
asset_content_type: application/x-executable
env:
GITHUB_TOKEN: ${{ github.token }}


build_windows:
runs-on: ubuntu-latest
needs: [prepare_release]

steps:
- uses: actions/checkout@v2
- name: Install dependencies
# The user does not run as root
run: sudo apt install wget cmake make mingw-w64 git unzip libsndfile-dev

- name: Run build script
shell: bash
working-directory: ${{runner.workspace}}
run: cd $GITHUB_WORKSPACE && ./build_windows.sh $BUILD_TYPE

- name: Upload compilied binary
uses: actions/upload-artifact@v2
- name: Upload zip
uses: actions/upload-release-asset@v1
with:
name: Release build
path: ${{runner.workspace}}/build/aptdec
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{runner.workspace}}/aptdec/winbuild/aptdec-1.7.0.zip
asset_name: aptdec_win64.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ github.token }}

+ 0
- 30
.github/workflows/win_debug.yml Datei anzeigen

@@ -1,30 +0,0 @@
name: x86 Win Debug

on:
push:
branches:
- devel
env:
BUILD_TYPE: Debug

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
# The user does not run as root
run: sudo apt install wget cmake make mingw-w64 git unzip libsndfile-dev

- name: Run build script
shell: bash
working-directory: ${{runner.workspace}}
run: cd $GITHUB_WORKSPACE && ./build_windows.sh $BUILD_TYPE

- name: Upload compilied binary
uses: actions/upload-artifact@v2
with:
name: Debug build
path: ${{runner.workspace}}/aptdec/winbuild/aptdec-1.7.0.zip

+ 0
- 30
.github/workflows/win_release.yml Datei anzeigen

@@ -1,30 +0,0 @@
name: x86 Win Release

on:
push:
branches:
- master
env:
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
# The user does not run as root
run: sudo apt install wget cmake make mingw-w64 git unzip libsndfile-dev

- name: Run build script
shell: bash
working-directory: ${{runner.workspace}}
run: cd $GITHUB_WORKSPACE && ./build_windows.sh $BUILD_TYPE

- name: Upload compilied binary
uses: actions/upload-artifact@v2
with:
name: Release build
path: ${{runner.workspace}}/aptdec/winbuild/aptdec-1.7.0.zip

+ 1
- 1
build_windows.bat Datei anzeigen

@@ -20,7 +20,7 @@ ninja install
cd ../..
REM Build libsndfile - Could build Vorbis, FLAC and Opus first for extra support
git clone https://github.com/libsndfile/libsndfile.git
git clone https://github.com/libsndfile/libsndfile
cd libsndfile
mkdir build
cd build


Laden…
Abbrechen
Speichern