-
Notifications
You must be signed in to change notification settings - Fork 0
Apple local development build #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f75ed99
committing changes
WingZer0o dc88d83
Merge branch 'main' into apple-local-development-build
WingZer0o 294fae1
update version number
WingZer0o a1637d9
Potential fix for pull request finding 'CodeQL / Workflow does not co…
WingZer0o 6506942
Potential fix for pull request finding 'CodeQL / Workflow does not co…
WingZer0o 860a5a6
update macos tests
WingZer0o 2035d7d
Merge branch 'apple-local-development-build' of https://github.com/Cr…
WingZer0o eba8775
mac os tests
WingZer0o 7137e84
Potential fix for pull request finding 'CodeQL / Workflow does not co…
WingZer0o c826126
Potential fix for pull request finding 'CodeQL / Workflow does not co…
WingZer0o 2f42153
permissions read and update to claude.md
WingZer0o File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,57 @@ | ||
| name: PR Tests - macOS arm64 | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| # macos-latest is Apple Silicon (osx-arm64). | ||
| runs-on: macos-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: | | ||
| 6.0.x | ||
| 7.0.x | ||
| 8.0.x | ||
| 9.0.x | ||
| 10.0.x | ||
|
|
||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Build Rust native (macOS arm64) | ||
| working-directory: cas-core-lib | ||
| run: cargo build --release | ||
|
|
||
| - name: Stage native lib for tests | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| for tfm in net6.0 net7.0 net8.0 net9.0 net10.0; do | ||
| OUTDIR="cas-dotnet-sdk-tests/bin/Release/${tfm}" | ||
| mkdir -p "$OUTDIR" | ||
| cp "cas-core-lib/target/release/libcas_core_lib.dylib" "$OUTDIR/" | ||
| done | ||
| ls -la cas-dotnet-sdk-tests/bin/Release | ||
|
|
||
| - name: Run tests (all target frameworks) | ||
| run: | | ||
| echo "Running tests for all target frameworks on macos-latest (arm64)" | ||
| dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
This file contains hidden or 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,57 @@ | ||
| name: PR Tests - macOS x64 | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| # macos-13 is Intel (osx-x64). | ||
| runs-on: macos-13 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: | | ||
| 6.0.x | ||
| 7.0.x | ||
| 8.0.x | ||
| 9.0.x | ||
| 10.0.x | ||
|
|
||
| - name: Setup Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Build Rust native (macOS x64) | ||
| working-directory: cas-core-lib | ||
| run: cargo build --release | ||
|
|
||
| - name: Stage native lib for tests | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| for tfm in net6.0 net7.0 net8.0 net9.0 net10.0; do | ||
| OUTDIR="cas-dotnet-sdk-tests/bin/Release/${tfm}" | ||
| mkdir -p "$OUTDIR" | ||
| cp "cas-core-lib/target/release/libcas_core_lib.dylib" "$OUTDIR/" | ||
| done | ||
| ls -la cas-dotnet-sdk-tests/bin/Release | ||
|
|
||
| - name: Run tests (all target frameworks) | ||
| run: | | ||
| echo "Running tests for all target frameworks on macos-13 (x64)" | ||
| dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.