Skip to content

fix: scripts/benchmark/requirements.txt to reduce vulnerabilities (#503) #309

fix: scripts/benchmark/requirements.txt to reduce vulnerabilities (#503)

fix: scripts/benchmark/requirements.txt to reduce vulnerabilities (#503) #309

Workflow file for this run

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: "Publish: GitHub Pages"
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Demo Build
run: |
sudo apt install clang-14 lld-14 llvm-14 libjs-d3 python3-numpy
sudo apt install llvm -y
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone https://github.com/acornjs/acorn.git
cd acorn ; npm install ; cd -
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk ; ./emsdk install latest ; cd -
yarn global add webpack webpack-cli
npm i -g webpack-cli -D --save
npm install webpack-cli
cd src/js ;npm install webpack-cli
yarn add -D webpack-cli ; cd -
cd emsdk ; ./emsdk activate latest ; source ./emsdk_env.sh ; cd -
emcc -v
make all jsbundle
mkdir -p ./doc/gh-pages/demo/
cp src/js/index.html ./doc/gh-pages/demo/index.html
# yaml front matter
echo -e "---\ntitle: Interactive Demo\npublished: true\nparent: Demo\nnav_order: 1\n---\n$(cat ./doc/gh-pages/demo/index.html)" > ./doc/gh-pages/demo/index.html
cp ./build/jsweb/gnoll.bundle.js ./doc/gh-pages/demo/gnoll.bundle.js
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./doc/gh-pages/
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1