Skip to content

Commit

Permalink
ci: fix AOT build (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne4to authored Feb 5, 2024
1 parent 7cf848a commit c8f3725
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
draft: false
generate_release_notes: true
files: release-artifacts/**
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Publish native AOT
name: Test native AOT publish

on:
push:
branches: [ disabled ]
pull_request:
branches:
- master

jobs:
build-aot:
name: Build Native AOT
strategy:
matrix:
# https://github.com/actions/runner-images
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Build Native AOT PR
runs-on: ubuntu-latest
env:
# temp fix frontend build
# Treating warnings as errors because process.env.CI = true.
Expand All @@ -33,18 +30,3 @@ jobs:
shell: pwsh
run: |
./scripts/publish-native-aot.ps1
# TODO join steps
- name: 'Upload Artifact linux-x64'
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: Heartbeat-linux-x64
path: artifacts/linux-x64/
retention-days: 1
- name: 'Upload Artifact win-x64'
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v4
with:
name: Heartbeat-win-x64
path: artifacts/win-x64/
retention-days: 1
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>0.8.0</VersionPrefix>
<VersionPrefix>0.8.1</VersionPrefix>
<RepositoryUrl>https://github.com/Ne4to/Heartbeat</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
4 changes: 4 additions & 0 deletions src/Heartbeat/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

using System.CommandLine;

#if AOT
using Microsoft.Extensions.FileProviders;
#endif

#if OPENAPI
using Heartbeat.Host.Extensions;
using System.Text.Json.Serialization;
Expand Down

0 comments on commit c8f3725

Please sign in to comment.