Skip to content

Commit

Permalink
Add macos test
Browse files Browse the repository at this point in the history
  • Loading branch information
phnzb committed Nov 21, 2024
1 parent 2e01762 commit 0461fe7
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup vcpkg environment
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
Expand Down Expand Up @@ -83,6 +83,39 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: nzbget-windows-test-log
name: nzbget-linux-test-log
path: build/Testing/Temporary/LastTest.log
retention-days: 5

macos-tests:
runs-on: macos-latest
steps:

- uses: tecolicom/actions-use-homebrew-tools@v1
with:
tools: "cmake boost openssl@3"
cache: yes
verbose: false

- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
mkdir build
cd build
cmake .. -DBUILD_ONLY_TESTS=ON
cmake --build . --config Release -j 4
- name: Test
run: |
cd build
ctest -C Release
- name: Upload test artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: nzbget-linux-test-log
path: build/Testing/Temporary/LastTest.log
retention-days: 5

0 comments on commit 0461fe7

Please sign in to comment.