You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- name: meson build
-
- on:
- push:
- branches:
- - develop
- - mesonBasic
- pull_request:
- branches:
- - develop
- - mesonBasic
-
- concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
- permissions:
- contents: read # to fetch code (actions/checkout)
-
- jobs:
- build:
- if: "github.repository == 'HaoZeke/OpenBLAS'"
- runs-on: ${{ matrix.os }}
-
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest, macos-13, macos-latest]
- build: [meson]
- fortran: [gfortran]
- openmp: [0]
- ilp64: [0]
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
-
- - name: Print system information
- run: |
- if [ "$RUNNER_OS" == "Linux" ]; then
- cat /proc/cpuinfo
- elif [ "$RUNNER_OS" == "macOS" ]; then
- sysctl -a | grep machdep.cpu
- else
- echo "::error::$RUNNER_OS not supported"
- exit 1
- fi
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: '3.11'
- #cache: 'pip'
-
- - name: Install dependencies
- run: |
- if [ "$RUNNER_OS" == "Linux" ]; then
- sudo apt-get install -y gfortran libtinfo5
- elif [ "$RUNNER_OS" == "macOS" ]; then
- # It looks like "gfortran" isn't working correctly unless "gcc" is re-installed.
- brew reinstall gcc
- brew install coreutils
- brew install llvm
- else
- echo "::error::$RUNNER_OS not supported"
- exit 1
- fi
- - name: Install packages
- run: |
- python -m pip install meson ninja
- - name: Build OpenBLAS
- run: |
- meson setup build --buildtype release
- meson compile -C build
- - name: Run tests
- run: |
- meson test -C build -v
|