From 1aa6a159d0c3e8c4a1ba28270458569ab7ad6314 Mon Sep 17 00:00:00 2001 From: ga Date: Thu, 13 Jun 2024 09:29:27 +0100 Subject: [PATCH] Fix test.yml for Mac by fixing docopt and using Macos-12 runner. Update the versions of called Actions to prevent warnings.hi and add "workflow_dispatch" to allow testing. Unrelated: add "*.so" to .gitignore to hide built libvvp.so. --- .github/workflows/test.yml | 15 ++++++++------- .gitignore | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c18acd290..53fa57b884 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,22 +7,23 @@ on: - master # All pull_requests trigger a retest. pull_request: + workflow_dispatch: jobs: mac: strategy: fail-fast: false - runs-on: macos-latest + runs-on: macos-12 name: '🍏 macOS' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | brew install bison - pip3 install docopt + pip3 install --break-system-packages docopt - name: Build, check and install run: | @@ -48,7 +49,7 @@ jobs: name: '🐧 Ubuntu ${{ matrix.os }}' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -89,7 +90,7 @@ jobs: - run: git config --global core.autocrlf input shell: bash - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: msys2/setup-msys2@v2 with: @@ -102,7 +103,7 @@ jobs: python-pip mingw-w64-${{ matrix.arch }}-toolchain - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '>=3.5' @@ -118,7 +119,7 @@ jobs: run: | ./.github/test.sh - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ matrix.msystem }}-${{ matrix.arch }} path: msys2/*.zst diff --git a/.gitignore b/.gitignore index 133d6c815e..319b3c1996 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ cscope.* # Object files and libraries *.[oa] +*.so gmon*.out gmon*.txt