Skip to content

Commit

Permalink
fix: 🤦🏼‍♂️ missing setup msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne committed Dec 2, 2024
1 parent 43b5736 commit 8bfec02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,14 @@ jobs:
with:
fetch-depth: 0

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2

- name: ⚒️ Run GitVersion
run: ./build.ps1 build-server-version

- name: Build
run: ./build.ps1 build-cmake

- name: LS
run: ls
working-directory: build/27/

- name: Build sln
run: msbuild build/27/archicad-speckle.sln /p:Configuration=Release
run: ./build.ps1

- uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion ci-build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ void RemoveDirectory(string d)

Target(
BUILD,
DependsOn(RUN_CMAKE),
Consts.SupportedVersions,
s =>
{
var version = Environment.GetEnvironmentVariable("GitVersion_FullSemVer") ?? "3.0.0-localBuild";
var fileVersion = Environment.GetEnvironmentVariable("GitVersion_AssemblySemFileVer") ?? "3.0.0.9999";
Console.WriteLine($"Version: {version} & {fileVersion}");
Run("msbuild", $"archicad-speckle.sln /p:Configuration=Release /p:Version={version} /p:FileVersion={fileVersion}", $"./build/{s}/");
Run("msbuild", $"./build/{s}/archicad-speckle.sln /p:Configuration=Release /p:Version={version} /p:FileVersion={fileVersion}");
}
);

Expand Down

0 comments on commit 8bfec02

Please sign in to comment.