forked from hampusborgos/rme
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into pr/36
- Loading branch information
Showing
60 changed files
with
860 additions
and
11,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
name: Build - Windows - CMake | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- 'src/**' | ||
- 'source/**' | ||
- 'cmake/**' | ||
- 'CMakeLists.txt' | ||
- 'CMakePresets.json' | ||
- 'vcpkg.json' | ||
push: | ||
paths: | ||
- 'src/**' | ||
- 'source/**' | ||
- 'cmake/**' | ||
- 'CMakeLists.txt' | ||
- 'CMakePresets.json' | ||
- 'vcpkg.json' | ||
branches: | ||
- main | ||
|
||
env: | ||
CMAKE_BUILD_PARALLEL_LEVEL: 2 | ||
MAKEFLAGS: '-j 2' | ||
jobs: | ||
job: | ||
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | ||
name: ${{ matrix.os }}-${{ matrix.buildtype }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2022] | ||
buildtype: [ windows-release ] | ||
include: | ||
- os: windows-2022 | ||
triplet: x64-windows-static | ||
packages: > | ||
sccache | ||
steps: | ||
- name: Cancel Previous Runs | ||
if: github.ref != 'refs/heads/main' | ||
uses: fkirc/skip-duplicate-actions@master | ||
with: | ||
concurrent_skipping: 'same_content' | ||
cancel_others: true | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
|
||
- name: CCache | ||
uses: hendrikmuhs/ccache-action@main | ||
with: | ||
max-size: "1G" | ||
variant: "sccache" | ||
key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} | ||
restore-keys: | | ||
ccache-${{ matrix.os }} | ||
- name: Restore artifacts and install vcpkg | ||
id: vcpkg-step | ||
run: | | ||
$json=Get-Content vcpkg.json -Raw | ConvertFrom-Json | ||
$vcpkgCommitId=$json.'builtin-baseline' | ||
Write-Host "vcpkg commit ID: $vcpkgCommitId" | ||
echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
- name: Get vcpkg commit id from vcpkg.json | ||
uses: lukka/run-vcpkg@main | ||
with: | ||
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" | ||
vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} | ||
|
||
- name: Get latest CMake and ninja | ||
uses: lukka/get-cmake@main | ||
|
||
- name: Run CMake | ||
uses: lukka/run-cmake@main | ||
with: | ||
configurePreset: ${{ matrix.buildtype }} | ||
buildPreset: ${{ matrix.buildtype }} | ||
|
||
- name: Create and Upload Artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: canary-${{ matrix.buildtype }}-${{ github.sha }} | ||
path: | | ||
${{ github.workspace }}/*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
--- | ||
name: Build - Windows | ||
name: Build - Windows - Solution | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- 'src/**' | ||
- 'source/**' | ||
- 'cmake/**' | ||
- 'CMakeLists.txt' | ||
- 'CMakePresets.json' | ||
- 'vcpkg.json' | ||
- 'vcproj/**' | ||
push: | ||
paths: | ||
- 'src/**' | ||
- 'source/**' | ||
- 'cmake/**' | ||
- 'CMakeLists.txt' | ||
- 'CMakePresets.json' | ||
- 'vcpkg.json' | ||
- 'vcproj/**' | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
job: | ||
|
@@ -25,11 +40,18 @@ jobs: | |
packages: > | ||
sccache | ||
steps: | ||
- name: Cancel Previous Runs | ||
if: github.ref != 'refs/heads/main' | ||
uses: fkirc/skip-duplicate-actions@master | ||
with: | ||
concurrent_skipping: 'same_content' | ||
cancel_others: true | ||
|
||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@main | ||
|
||
- name: Install vcpkg | ||
run: | | ||
|
@@ -42,7 +64,7 @@ jobs: | |
run: msbuild.exe /p:VcpkgEnableManifest=true /p:Configuration=Release /p:Platform=x64 /p:VcpkgRoot=$env:GITHUB_WORKSPACE/vcpkg vcproj/RME.sln | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.buildtype }} | ||
path: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,6 @@ cmake-build-debug/ | |
*.exe | ||
*.pdb | ||
*.rar | ||
vcpkg_installed/ | ||
*.ilk | ||
remeres.exe.manifest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.