Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ master, testing ] | |
pull_request: | |
name: Build/Check on MacOS | |
jobs: | |
macos-build-check: | |
name: Build on MacOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v2 | |
with: | |
path: _src/ | |
- name: Fetch tags | |
shell: bash | |
run: | | |
pushd _src | |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
popd | |
- name: Prepare VM | |
shell: bash | |
env: | |
PYTHON: /usr/local/bin/python3.9 | |
run: | | |
export HOMEBREW_LOGS=/tmp | |
brew tap eos/eos | |
brew outdated [email protected] || brew upgrade [email protected] || true | |
rm -Rf '/usr/local/lib/python2.7/site-packages/numpy/' | |
brew outdated boost || brew upgrade boost || true | |
brew outdated boost-python3 || brew upgrade boost-python3 || true | |
brew install autoconf automake boost-python3 gsl libtool pkg-config yaml-cpp | |
brew link --overwrite --force [email protected] | |
$PYTHON -m pip install -U cython h5py matplotlib numpy PyYAML scipy "pypmc>=1.2" | |
- name: Create build directory | |
shell: bash | |
run: mkdir -p _build | |
- name: Configure | |
shell: bash | |
env: | |
CXXFLAGS: "-O2 -g -march=x86-64" | |
PYTHON: /usr/local/bin/python3.9 | |
run: | | |
echo === | |
ls -ld /usr/local/Cellar/python* | |
echo === | |
ls -ld /usr/local/Cellar/[email protected]/ | |
echo === | |
find /usr/local/Cellar/[email protected] -name "python3*" | |
echo === | |
SUFFIX=$($PYTHON -c "import sys; print('{0}{1}'.format(sys.version_info[0], sys.version_info[1]))") | |
echo using boost-python suffix ${SUFFIX} | |
pushd _src | |
./autogen.bash | |
popd | |
pushd _build | |
../_src/configure \ | |
--enable-python \ | |
--with-boost-python-suffix=${SUFFIX} \ | |
--prefix=/usr/local \ | |
PYTHON=${PYTHON} | |
popd | |
- name: Build & Install | |
shell: bash | |
run: | | |
pushd _build | |
make -j2 all | |
make install | |
popd | |
- name: Check | |
shell: bash | |
run: | | |
pushd _build | |
make check -j2 VERBOSE=1 | |
popd | |
- name: Run examples | |
shell: bash | |
run: | | |
pushd _build | |
export PYTHONPATH+=":$(make print-pythondir)" | |
popd | |
pushd _src | |
make -C examples/cli examples | |
popd |