Updated some of the links in the README. #10
Workflow file for this run
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: | |
tags: | |
- 'v*' | |
name: Build igraph Wasm | |
jobs: | |
build-wasm: | |
runs-on: ubuntu-latest | |
container: ghcr.io/kanaverse/emcmake-docker/builder:2024-10-01 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Fetch release name | |
run: | | |
release=${GITHUB_REF#refs/*/} | |
echo "RELEASE=${release}" >> $GITHUB_ENV | |
emsdk=$(echo ${release} | sed "s/^v[^_]*_//") | |
echo "EMSDK_VERSION=${emsdk}" >> $GITHUB_ENV | |
prefix=$(echo ${release} | sed "s/_.*//") | |
title="${prefix} (Emscripten ${emsdk})" | |
echo "TITLE=${title}" >> $GITHUB_ENV | |
echo $title | |
- name: Activate Emscripten version | |
run: | | |
cd /emsdk && git pull | |
emsdk install ${{ env.EMSDK_VERSION }} | |
emsdk activate ${{ env.EMSDK_VERSION }} | |
- name: Build library | |
run: ./build.sh | |
- name: Prettify release body | |
run: | | |
echo "Built with:" > release.txt | |
echo "- "$(cmake --version | head -1) >> release.txt | |
echo "- "$(emcc -v 2>&1 | head -1) >> release.txt | |
echo "" >> release.txt | |
echo "File SHA256:" >> release.txt | |
echo \`\`\` >> release.txt | |
for x in $(ls igraph-*-wasm.tar.gz) | |
do | |
shasum -a 256 $x >> release.txt | |
done | |
echo \`\`\` >> release.txt | |
cat release.txt | |
- name: Publish tarballs | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: igraph-*-wasm.tar.gz | |
name: ${{ env.TITLE }} | |
body_path: release.txt |