build: Upgrade actions/upload-artifact and node-version #624
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
name: Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
release: | |
name: ${{ matrix.config.os }}${{ matrix.target.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- { | |
name: windows, | |
os: windows-2019, | |
artifact: "infomap-win", | |
binary: Infomap.exe, | |
cxxflags: -static, | |
ldflags: -static, | |
compiler: g++, | |
} | |
- { | |
name: ubuntu, | |
os: ubuntu-20.04, | |
artifact: "infomap-ubuntu", | |
binary: Infomap, | |
cxxflags: "", | |
ldflags: "", | |
compiler: g++, | |
} | |
- { | |
name: macos, | |
os: macos-11, | |
artifact: "infomap-mac", | |
binary: Infomap, | |
cxxflags: "-I /usr/local/include -I/usr/local/opt/llvm/include", | |
ldflags: "-L /usr/local/lib -L/usr/local/opt/llvm/lib", | |
compiler: /usr/local/opt/llvm/bin/clang++, | |
} | |
target: | |
- { name: "", target: "" } | |
- { name: "-noomp", target: "noomp" } | |
steps: | |
- uses: actions/checkout@v4 | |
- if: startsWith(matrix.config.os, 'macos') | |
run: | | |
brew install p7zip llvm libomp | |
export PATH="$(brew --prefix llvm)/bin:$PATH" | |
- run: make -j ${{ matrix.target.target }} | |
shell: bash | |
env: | |
CXX: ${{ matrix.config.compiler }} | |
CXXFLAGS: ${{ matrix.config.cxxflags }} | |
LDFLAGS: ${{ matrix.config.ldflags }} | |
- run: ./Infomap --version | |
shell: bash |