Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: windows-latest
outputs:
framework: ${{ steps.variables.outputs.framework }}
version: ${{ steps.variables.outputs.version }}
Expand Down Expand Up @@ -75,11 +75,23 @@ jobs:
name: tests-linux-x64
path: _tests/${{ env.FRAMEWORK }}/linux-x64/publish/**/*

- name: Publish win-x64 Test Artifact
uses: actions/upload-artifact@v4
with:
name: tests-win-x64
path: _tests/${{ env.FRAMEWORK }}/win-x64/publish/**/*

- name: Publish Linux Artifact
uses: actions/upload-artifact@v4
with:
name: build_linux
path: _artifacts/linux-*/**/*

- name: Publish Windows Artifact
uses: actions/upload-artifact@v4
with:
name: build_windows
path: _artifacts/win-*/**/*

unit_test:
needs: build
Expand Down Expand Up @@ -372,33 +384,43 @@ jobs:
permissions:
contents: write
steps:
- name: Download Build Artifact
- name: Download Linux Build Artifact
uses: actions/download-artifact@v4
with:
name: build_linux
path: _output

- name: Make Binaries Executable

- name: Download Windows Build Artifact
uses: actions/download-artifact@v4
with:
name: build_windows
path: _output

- name: Make Linux Binaries Executable
shell: bash
run: |
find . -name "ffprobe" -exec chmod a+x {} \;
find . -name "Radarr" -exec chmod a+x {} \;
find . -name "Radarr.Update" -exec chmod a+x {} \;

- name: Create Release Package
- name: Create Release Packages
shell: bash
run: |
mkdir -p _artifacts
tar -czf _artifacts/Radarr.${{ needs.build.outputs.branch }}.${{ needs.build.outputs.version }}.linux-musl-core-x64.tar.gz -C _output/linux-musl-x64/${{ env.FRAMEWORK }} Radarr
tar -czf _artifacts/Radarr.${{ needs.build.outputs.branch }}.${{ needs.build.outputs.version }}.linux-musl-core-arm64.tar.gz -C _output/linux-musl-arm64/${{ env.FRAMEWORK }} Radarr
(cd _output/win-x64/${{ env.FRAMEWORK }} && zip -r ${{ github.workspace }}/_artifacts/Radarr.${{ needs.build.outputs.branch }}.${{ needs.build.outputs.version }}.windows-core-x64.zip Radarr)
(cd _output/win-x86/${{ env.FRAMEWORK }} && zip -r ${{ github.workspace }}/_artifacts/Radarr.${{ needs.build.outputs.branch }}.${{ needs.build.outputs.version }}.windows-core-x86.zip Radarr)

- name: Upload Release Artifact
- name: Upload Release Artifacts
uses: actions/upload-artifact@v4
with:
name: release_linux
name: release_packages
compression-level: 0
if-no-files-found: error
path: _artifacts/Radarr.*.linux-musl-core-*.tar.gz
path: |
_artifacts/Radarr.*.linux-musl-core-*.tar.gz
_artifacts/Radarr.*.windows-core-*.zip

- name: Get Previous Release
id: previous-release
Expand Down Expand Up @@ -428,7 +450,7 @@ jobs:
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: _artifacts/Radarr.*.linux-musl-core-*.tar.gz
artifacts: "_artifacts/Radarr.*.linux-musl-core-*.tar.gz,_artifacts/Radarr.*.windows-core-*.zip"
commit: ${{ github.sha }}
generateReleaseNotes: false
body: ${{ steps.generate-release-notes.outputs.result }}
Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ then
Build
if [[ -z "$RID" || -z "$FRAMEWORK" ]];
then
# PackageTests "net8.0" "win-x64"
# PackageTests "net8.0" "win-x86"
PackageTests "net8.0" "win-x64"
PackageTests "net8.0" "win-x86"
PackageTests "net8.0" "linux-x64"
PackageTests "net8.0" "linux-musl-x64"
# PackageTests "net8.0" "osx-x64"
Expand Down Expand Up @@ -412,8 +412,8 @@ then

if [[ -z "$RID" || -z "$FRAMEWORK" ]];
then
# Package "net8.0" "win-x64"
# Package "net8.0" "win-x86"
Package "net8.0" "win-x64"
Package "net8.0" "win-x86"
Package "net8.0" "linux-x64"
Package "net8.0" "linux-musl-x64"
Package "net8.0" "linux-arm64"
Expand Down
2 changes: 1 addition & 1 deletion src/NzbDrone.Core/Radarr.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageReference Include="Dapper" Version="2.1.66" />
<PackageReference Include="Diacritical.Net" Version="1.0.4" />
<PackageReference Include="Equ" Version="2.3.0" />
<PackageReference Include="MailKit" Version="4.15.1" />
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="8.0.17" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.1" />
<PackageReference Include="Npgsql" Version="9.0.3" />
Expand Down
Loading