Skip to content

Commit 0321f44

Browse files
committed
Updated actions
1 parent fb6c6dd commit 0321f44

File tree

1 file changed

+17
-72
lines changed

1 file changed

+17
-72
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -3,89 +3,34 @@ name: Check-Build
33
on: [push]
44

55
jobs:
6-
# plugin:
7-
# runs-on: windows-latest
8-
# strategy:
9-
# matrix:
10-
# dotnet-version: ['7.0.x' ]
6+
build:
117

12-
# steps:
13-
# - uses: actions/checkout@v3
14-
# - uses: actions/setup-dotnet@v3
15-
# with:
16-
# dotnet-version: '7.0.x'
17-
18-
# - name: Restore and build (publish)
19-
# run: dotnet publish Caramel\Caramel.csproj --configuration Release /p:PublishProfile=Caramel\Properties\PublishProfiles\FolderProfile.pubxml
20-
21-
# - name: Pack published files
22-
# run: |
23-
# cd Caramel/bin/Release/net7.0/win10-x64/publish
24-
# 7z a plugin_Caramel.zip *
25-
26-
# - name: Upload plugin artifact
27-
# uses: "marvinpinto/action-automatic-releases@latest"
28-
# with:
29-
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
30-
# automatic_release_tag: "latest"
31-
# prerelease: true
32-
# title: "plugin_Caramel Build Artifact"
33-
# files: |
34-
# ./Caramel/bin/Release/net7.0/win10-x64/publish/plugin_Caramel.zip
35-
# ./external/manifest.json
36-
37-
app:
38-
# needs: plugin
39-
runs-on: macos-13
8+
runs-on: windows-latest
409
strategy:
4110
matrix:
4211
dotnet-version: ['7.0.x' ]
4312

4413
steps:
4514
- uses: actions/checkout@v3
46-
47-
- name: Install Xamarin.iOS
48-
run: brew install --cask xamarin-ios
49-
50-
- name: Download Visual Studio for Mac
51-
run: curl https://download.visualstudio.microsoft.com/download/pr/ceb0ea3f-4db8-46b4-8dc3-8049d27c0107/91eb158e928097dcb6e42ece2db7ebac/visualstudioformac-17.6.7.417-arm64.dmg -o /tmp/vsformac.dmg
52-
53-
- name: Mount Visual Studio for Mac dmg
54-
run: hdiutil attach /tmp/vsformac.dmg
55-
56-
- name: Extract MSBuild
57-
run: cp -R /Volumes/Visual\ Studio/Visual\ Studio.app/Contents/MonoBundle/MSBuild/Current/bin /tmp/msbuild
58-
59-
- name: Setup .NET
60-
uses: actions/setup-dotnet@v3
15+
- uses: actions/setup-dotnet@v3
6116
with:
62-
dotnet-version: 7.0.x
63-
64-
- name: Restore dependencies with dotnet restore
65-
run: dotnet restore SharpOSC.iOS/SharpOSC.iOS.csproj && dotnet restore Caramel.Client/Caramel.Client.csproj
66-
67-
- name: Restore dependencies with nuget restore
68-
run: nuget restore SharpOSC.iOS/SharpOSC.iOS.csproj && nuget restore Caramel.Client/Caramel.Client.csproj
69-
70-
- name: Select Xcode 15
71-
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app
72-
73-
# - name: Build
74-
# run: mono '/tmp/msbuild/MSBuild.dll' Caramel.Client/Caramel.Client.csproj /p:Configuration='Release' /t:Build /p:Platform='iPhone' /p:BuildIpa=true /p:EnableCodeSigning=false
75-
17+
dotnet-version: '7.0.x'
18+
7619
- name: Restore and build (publish)
77-
run: |
78-
mono '/tmp/msbuild/MSBuild.dll' Caramel.Client/Caramel.Client.csproj /p:Configuration=Release /p:ArchiveOnBuild=true /t:"Build"
20+
run: dotnet publish --configuration Release /p:PublishProfile=Caramel\Properties\PublishProfiles\FolderProfile.pubxml
7921

8022
- name: Pack published files
8123
run: |
82-
cd Caramel.Client/bin/iPhoneSimulator/Release && mkdir Payload
83-
mv Caramel.Client.app Payload/Caramel.Client.app && zip -r Caramel.Client.ipa Payload
24+
cd Caramel/bin/Release/net7.0/win10-x64/publish
25+
7z a plugin_Caramel.zip *
8426
85-
- name: Upload app artifact
86-
uses: svenstaro/upload-release-action@v2
27+
- name: Upload plugin artifact
28+
uses: "marvinpinto/action-automatic-releases@latest"
8729
with:
88-
repo_token: ${{ secrets.GITHUB_TOKEN }}
89-
tag: latest
90-
file: ./Caramel.Client/bin/iPhoneSimulator/Release/Caramel.Client.ipa
91-
overwrite: true
30+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
31+
automatic_release_tag: "latest"
32+
prerelease: true
33+
title: "plugin_Caramel Build Artifact"
34+
files: |
35+
./Caramel/bin/Release/net7.0/win10-x64/publish/plugin_Caramel.zip
36+
./external/manifest.json

0 commit comments

Comments
 (0)