graph-generator: update plotly.js to version 2.33.0 #18
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: Alpine | |
on: push | |
jobs: | |
alpine: | |
runs-on: ubuntu-22.04 | |
container: alpine:latest | |
steps: | |
- name: Install and prepare Git | |
run: | | |
apk update && apk upgrade | |
apk add git | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
# Checks-out the repository under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install packages | |
run: | | |
apk update | |
apk add catch2 cmake g++ git make pkgconf sqlite-dev zlib-dev | |
apk add sqlite-static zlib-static | |
- name: Build statically linked binaries | |
run: | | |
cd "$GITHUB_WORKSPACE" | |
mkdir build-static | |
cd build-static | |
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 | |
cmake ../ -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON | |
cmake --build . -j2 | |
- name: Run tests | |
run: | | |
cd "$GITHUB_WORKSPACE/build-static" | |
ctest -V | |
- name: Collect statically linked artifacts | |
run: | | |
cd "$GITHUB_WORKSPACE" | |
# db2csv | |
mkdir -p "$GITHUB_WORKSPACE"/artifacts/db2csv | |
cp build-static/src/db2csv/thermos-db2csv artifacts/db2csv | |
cp src/db2csv/readme.md artifacts/db2csv | |
# graph-generator | |
mkdir -p "$GITHUB_WORKSPACE"/artifacts/graph-generator | |
cp build-static/src/graph-generator/thermos-graph-generator artifacts/graph-generator | |
cp src/graph-generator/readme.md artifacts/graph-generator | |
cp src/graph-generator/graph.tpl artifacts/graph-generator | |
# info | |
mkdir -p "$GITHUB_WORKSPACE"/artifacts/info | |
cp build-static/src/info/thermos-info artifacts/info | |
cp src/info/readme.md artifacts/info | |
# logger | |
mkdir -p "$GITHUB_WORKSPACE"/artifacts/logger | |
cp build-static/src/logger/thermos-logger artifacts/logger | |
cp src/logger/readme.md artifacts/logger | |
# license + changelog + third-party notices | |
cp LICENSE artifacts/ | |
cp changelog.md artifacts/ | |
cp documentation/third-party.md artifacts/ | |
# determine version | |
VERSION=$(git describe --always) | |
echo Version is $VERSION. | |
mv artifacts thermos-$VERSION | |
tar czf thermos_${VERSION}_linux-amd64-generic.tar.gz thermos-$VERSION | |
- name: Archive build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: thermos-linux-generic | |
path: thermos_*_linux-amd64-generic.tar.gz | |
if-no-files-found: error |