Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First try macos-arm64 #137

Merged
merged 19 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 28 additions & 13 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

get_commit_message:
name: Get commit message
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
Expand All @@ -33,7 +33,7 @@ jobs:

trexio_ubuntu:
name: x86 Ubuntu 20.04
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: get_commit_message

steps:
Expand All @@ -53,8 +53,8 @@ jobs:

- name: install dependencies
run: |
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-get install libhdf5-dev emacs26
sudo apt-get update
sudo apt-get install libhdf5-dev emacs

- name: configure with autotools
run: |
Expand All @@ -74,19 +74,24 @@ jobs:
name: test-report-ubuntu
path: test-suite.log

- name: create virtual environment
- name: create venv
run: |
python3 -m venv --clear pytrexio-venv
source pytrexio-venv/bin/activate
python3 -m venv trexio-venv
source trexio-venv/bin/activate

- name: install Python API
run: make python-install
run: |
source trexio-venv/bin/activate
make python-install

- name: check Python API
run: make python-test
run: |
source trexio-venv/bin/activate
make python-test

- name: build and move Python API distribution
run: |
source trexio-venv/bin/activate
make python-sdist
cp python/dist/trexio-*.tar.gz .

Expand All @@ -105,7 +110,7 @@ jobs:
- name: reconfigure with clang and AddressSanitizer
run: |
./autogen.sh
./configure CC=clang-11 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules
./configure CC=clang-15 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules

- name: recompile TREXIO
run: make -j2
Expand All @@ -124,8 +129,8 @@ jobs:
run: make maintainer-clean

trexio_macos:
name: x86 MacOS 12
runs-on: macos-12
name: arm64 MacOS
runs-on: macos-14
q-posev marked this conversation as resolved.
Show resolved Hide resolved

steps:
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
Expand All @@ -135,6 +140,8 @@ jobs:
brew install emacs
brew install hdf5
brew install automake
brew install libtool
brew install swig
brew --prefix hdf5

- name: configure with autotools
Expand All @@ -148,14 +155,22 @@ jobs:
- name: check TREXIO
run: make -j3 check

- name: create venv
run: |
python3 -m venv trexio-venv
source trexio-venv/bin/activate

- name: compile Python API
run: |
export H5_CFLAGS="-I$(brew --prefix hdf5)/include"
export H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"
source trexio-venv/bin/activate
make python-install

- name: test Python API
run: make python-test
run: |
source trexio-venv/bin/activate
make python-test

- name: Archive test log file
if: failure()
Expand Down
3 changes: 2 additions & 1 deletion python/install_pytrexio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ else
export H5_CFLAGS=${H5_CFLAGS_LOCAL}
fi


# Install/upgrade packages required for the installation
python3 -m pip install --upgrade setuptools build pip
python3 -m pip install build
python3 -m pip install -r requirements.txt
python3 -m pip install pytest

Expand Down
Loading