Move deb building out of the build pipeline
This commit is contained in:
parent
7d3a39c693
commit
6cfd2dea96
4
.github/workflows/build-linux.yml
vendored
4
.github/workflows/build-linux.yml
vendored
@ -15,10 +15,6 @@ on:
|
|||||||
description: 'Skip running unit tests'
|
description: 'Skip running unit tests'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
outputs:
|
|
||||||
version:
|
|
||||||
description: "The Libation version number"
|
|
||||||
value: ${{ jobs.build.outputs.version }}
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTNET_CONFIGURATION: 'Release'
|
DOTNET_CONFIGURATION: 'Release'
|
||||||
|
|||||||
8
.github/workflows/build-windows.yml
vendored
8
.github/workflows/build-windows.yml
vendored
@ -15,10 +15,6 @@ on:
|
|||||||
description: 'Skip running unit tests'
|
description: 'Skip running unit tests'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
outputs:
|
|
||||||
version:
|
|
||||||
description: "The Libation version number"
|
|
||||||
value: ${{ jobs.build.outputs.version }}
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTNET_CONFIGURATION: 'Release'
|
DOTNET_CONFIGURATION: 'Release'
|
||||||
@ -27,8 +23,6 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
outputs:
|
|
||||||
version: ${{ steps.get_version.outputs.version }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [Windows]
|
os: [Windows]
|
||||||
@ -74,7 +68,7 @@ jobs:
|
|||||||
- name: Zip artifact
|
- name: Zip artifact
|
||||||
id: zip
|
id: zip
|
||||||
working-directory: ./Source/bin/Publish
|
working-directory: ./Source/bin/Publish
|
||||||
run: |
|
run: |
|
||||||
$dir = "${{ matrix.os }}-${{ matrix.release_name }}\"
|
$dir = "${{ matrix.os }}-${{ matrix.release_name }}\"
|
||||||
$delfiles = @("libmp3lame.so", "ffmpegaac.so", "glass-with-glow_256.svg", "Libation.desktop")
|
$delfiles = @("libmp3lame.so", "ffmpegaac.so", "glass-with-glow_256.svg", "Libation.desktop")
|
||||||
foreach ($file in $delfiles){ if (test-path $dir$file){ Remove-Item $dir$file } }
|
foreach ($file in $delfiles){ if (test-path $dir$file){ Remove-Item $dir$file } }
|
||||||
|
|||||||
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -15,11 +15,6 @@ on:
|
|||||||
description: 'Skip running unit tests'
|
description: 'Skip running unit tests'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
build_deb:
|
|
||||||
type: boolean
|
|
||||||
description: 'Build Debian package'
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows:
|
windows:
|
||||||
@ -32,12 +27,4 @@ jobs:
|
|||||||
uses: ./.github/workflows/build-linux.yml
|
uses: ./.github/workflows/build-linux.yml
|
||||||
with:
|
with:
|
||||||
version_override: ${{ inputs.version_override }}
|
version_override: ${{ inputs.version_override }}
|
||||||
run_unit_tests: ${{ inputs.run_unit_tests }}
|
run_unit_tests: ${{ inputs.run_unit_tests }}
|
||||||
|
|
||||||
linux_deb:
|
|
||||||
needs: [linux]
|
|
||||||
if: inputs.build_deb
|
|
||||||
uses: ./.github/workflows/build-deb.yml
|
|
||||||
with:
|
|
||||||
version: ${{ needs.linux.outputs.version }}
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# build-deb.yml
|
# deb.yml
|
||||||
# Reusable workflow that builds the Linux Debian package.
|
# Reusable workflow that builds the Linux Debian package.
|
||||||
---
|
---
|
||||||
name: build_deb
|
name: deb
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@ -21,15 +21,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download Artifact
|
- name: Download Artifact
|
||||||
uses: actions/download-artifact@master
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: "${{ env.FILE_NAME }}.tar.gz"
|
name: "${{ env.FILE_NAME }}.tar.gz"
|
||||||
|
|
||||||
- name: Build .deb
|
- name: Build .deb
|
||||||
id: deb
|
id: deb
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./.github/workflows/scripts/targz2deb.sh
|
./Scripts/targz2deb.sh "${{ env.FILE_NAME }}.tar.gz" ${{ inputs.version }}
|
||||||
./.github/workflows/scripts/targz2deb.sh "${{ env.FILE_NAME }}.tar.gz" ${{ inputs.version }}
|
|
||||||
|
|
||||||
- name: Publish .deb
|
- name: Publish .deb
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -33,7 +33,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version_override: ${{ needs.prerelease.outputs.version }}
|
version_override: ${{ needs.prerelease.outputs.version }}
|
||||||
run_unit_tests: false
|
run_unit_tests: false
|
||||||
build_deb: true
|
|
||||||
|
deb:
|
||||||
|
needs: [prerelease,build]
|
||||||
|
uses: ./.github/workflows/build-deb.yml
|
||||||
|
with:
|
||||||
|
version: ${{ needs.prerelease.outputs.version }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [prerelease,build]
|
needs: [prerelease,build]
|
||||||
|
|||||||
0
.github/workflows/scripts/targz2deb.sh → Scripts/targz2deb.sh
Normal file → Executable file
0
.github/workflows/scripts/targz2deb.sh → Scripts/targz2deb.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user