Skip to content

Commit

Permalink
#45 - тестовый workflow для проверки AOT publish на инфре GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepami committed Aug 5, 2024
1 parent 8bdd77a commit 3014c53
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test_aot_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: AOT publish
on:
push:
branches:
- 'feature/aot-publish'

jobs:
aot-publish:
name: Publish and upload AOT
strategy:
matrix:
config:
- os: ubuntu-latest
rid: linux-x64
type: application/x-pie-executable
- os: macos-latest
rid: osx-x64
type: application/x-mach-binary
- os: macos-arm64-latest
rid: osx-arm64
type: application/x-mach-binary
- os: windows-2022
rid: win-x64
type: application/x-dosexec
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Ubuntu
if: matrix.config.rid == 'linux-x64'
run: sudo apt-get install clang zlib1g-dev
- name: Publish AOT
run: |
mkdir output
dotnet publish ./src/HydraScript/HydraScript.csproj -c Release -r ${{ matrix.config.rid }} -p:PublishAot=true -o ./output
- name: Upload
uses: actions/upload-artifact@v4
with:
name: hydrascript-${{ matrix.config.rid }}${{ matrix.config.rid == 'win-x64' && '.exe' || '' }}
path: ./output/HydraScript${{ matrix.config.rid == 'win-x64' && '.exe' || '' }}
1 change: 1 addition & 0 deletions ExtendedJavaScriptSubset.sln
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{
.github\workflows\cla.yml = .github\workflows\cla.yml
.github\workflows\develop.yml = .github\workflows\develop.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\test_aot_publish.yml = .github\workflows\test_aot_publish.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IssueTemplate", "IssueTemplate", "{0E31199C-4893-4920-A356-D1FF7850BFAD}"
Expand Down

0 comments on commit 3014c53

Please sign in to comment.