Add simple unit test for macro object (#158) #588
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
name: "main" | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
jobs: | |
dotnet-job: | |
name: ".NET" | |
runs-on: ${{ matrix.platform.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { name: Windows x64, os: windows-latest, shell: bash } | |
- { name: Linux x64, os: ubuntu-latest, shell: bash } | |
- { name: macOS x64, os: macos-latest, shell: bash } | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
steps: | |
- name: "Clone Git repository" | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: "Install Clang: Windows" | |
if: matrix.platform.os == 'windows-latest' | |
run: | | |
source "${{ github.workspace }}\.github\scripts\install-clang-x64-windows.sh" | |
- name: "Install Clang: Linux" | |
if: matrix.platform.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install gcc-aarch64-linux-gnu llvm-14 clang-14 | |
- name: "Install .NET" | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
include-prerelease: true | |
- name: "Install CAstFfi" | |
shell: bash | |
run: dotnet tool install --global bottlenoselabs.CAstFfi.Tool | |
- name: ".NET" | |
uses: bottlenoselabs/github-actions-dotnet@v3 | |
with: | |
dotnet-sdk-version: "7.0.x" | |
solution-or-project: "${{ github.workspace }}/src/cs/C2CS.sln" | |
is-enabled-upload-myget: "${{ matrix.platform.os == 'ubuntu-latest' && ( github.event_name == 'push' || startsWith(github.ref, 'refs/tags/v') ) }}" | |
is-enabled-upload-nuget: "${{ matrix.platform.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v') }}" | |
myget-access-token: "${{ secrets.MYGET_ACCESS_TOKEN }}" | |
nuget-access-token: "${{ secrets.NUGET_ACCESS_TOKEN }}" | |
# - name: "Snipe test files" | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: "Test Data ${{ matrix.platform.name }}" | |
# path: | | |
# ${{ github.workspace }}/src/cs/tests/*Tests*/**/*.json | |