Run Clang-Tidy on taskcluster #9683
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
name: GH Pages | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 5 * * *' | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
wasm_chrome: | |
name: Add Wasm_Chrome | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x # Run with latest stable Deno. | |
- name: Generate Dynamic Files | |
if: github.ref == 'refs/heads/main' | |
run: | | |
cd tools/wasm_chrome | |
deno run --allow-all generate_branch_file.ts -T ${{ secrets.GITHUB_TOKEN }} | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Wasm-Chrome | |
path: tools/wasm_chrome | |
logviewer: | |
name: Add Logviewer | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Logviewer | |
path: tools/logviewer | |
addonStats: | |
name: Add Addon-Stats | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: AddonStats | |
path: tools/addonstats | |
docs: | |
name: Render Docs | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Building | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install doxygen -y | |
doxygen | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: doxygen-docs | |
path: html/ | |
inspector: | |
name: Add Inspector | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Building | |
shell: bash | |
run: | | |
npm install | |
npm run inspector:build | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Inspector Build | |
path: tools/inspector/dist/app | |
translationsreport: | |
name: Add Translations Report | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Building | |
shell: bash | |
run: | | |
cd tools/translationsreport/app | |
npm install | |
npm run build | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Translations Report | |
path: tools/translationsreport/app/build | |
addons: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Install Linux packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y $(./scripts/linux/getdeps.py -a linux/debian/control) | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install python dependencies | |
shell: bash | |
run: pip install -r requirements.txt | |
- name: Generating addons | |
shell: bash | |
run: | | |
export PATH=/opt/$QTVERSION/gcc_64/bin:$PATH | |
mkdir -p build-addons | |
cmake -S addons -B build-addons | |
cmake --build build-addons | |
- name: Sign manifest | |
if: github.ref == 'refs/heads/main' | |
shell: bash | |
env: | |
ADDON_PRIVATE_KEY: ${{ secrets.ADDON_PRIVATE_KEY }} | |
run: | | |
echo -n "$ADDON_PRIVATE_KEY" > addon_private_key.pem | |
openssl dgst -sha256 -sign addon_private_key.pem -out build-addons/manifest.json.sig build-addons/manifest.json | |
rm addon_private_key.pem | |
- name: Uploading | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Addons | |
path: | | |
build-addons/*.rcc | |
build-addons/manifest.* | |
ghPages: | |
runs-on: ubuntu-20.04 | |
needs: [wasm_chrome, inspector, translationsreport, addons, logviewer, addonstats, docs] | |
name: Compile Github Page from Components | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Download Wasm-chrome | |
uses: actions/download-artifact@v3 | |
with: | |
name: Wasm-Chrome | |
# Destination path | |
path: _site | |
- name: Download Docs | |
uses: actions/download-artifact@v3 | |
with: | |
name: doxygen-docs | |
# Destination path | |
path: _site/docs | |
- name: Download a Addons Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: Addons | |
path: _site/addons | |
- name: Download the Logviewer Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: Logviewer | |
path: _site/logviewer | |
- name: Download the AddonStats Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: AddonStats | |
path: _site/addonstats | |
- name: Download a Inspector Artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: Inspector Build | |
path: _site/inspector | |
- name: Download the Translations Report artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: Translations Report | |
path: _site/translationsreport | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
deploy: | |
name: Deploy Github Page | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: ghPages | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |