From 2d72acbf005b3311a923b697e0bb624743688a7e Mon Sep 17 00:00:00 2001 From: bezzad Date: Fri, 20 Sep 2024 12:16:59 +0330 Subject: [PATCH] added dotnet-macos.yml file for GitHub actions on macOS --- .github/workflows/dotnet-macos.yml | 28 ++++++++++++++++++++++++++++ src/Downloader.sln | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/dotnet-macos.yml diff --git a/.github/workflows/dotnet-macos.yml b/.github/workflows/dotnet-macos.yml new file mode 100644 index 0000000..e6f36af --- /dev/null +++ b/.github/workflows/dotnet-macos.yml @@ -0,0 +1,28 @@ +name: Ubuntu x64 + +on: [ push ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup .NET Core 8.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore ./src + + - name: Build solution + run: dotnet build -c Release ./src --verbosity minimal + + - name: Run tests and collect coverage + run: dotnet test -c Release ./src --verbosity normal --no-build --no-restore \ No newline at end of file diff --git a/src/Downloader.sln b/src/Downloader.sln index fad192d..949b09c 100644 --- a/src/Downloader.sln +++ b/src/Downloader.sln @@ -16,6 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution items", "Solution ..\codecov.yml = ..\codecov.yml ..\.github\workflows\dotnet-ubuntu.yml = ..\.github\workflows\dotnet-ubuntu.yml ..\.github\workflows\dotnet-windows.yml = ..\.github\workflows\dotnet-windows.yml + ..\.github\workflows\dotnet-windows.yml = ..\.github\workflows\dotnet-macos.yml ..\LICENSE = ..\LICENSE ..\README.md = ..\README.md ..\sample.gif = ..\sample.gif