Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3bfa591
Refactor pipelines
Alex-Tsvetanov Oct 13, 2023
67fffa9
Fixing some build issues
Alex-Tsvetanov Oct 13, 2023
dedfa40
disable PR
Alex-Tsvetanov Oct 13, 2023
c62b36b
Update build.yaml
Alex-Tsvetanov Oct 13, 2023
953f3a7
Update build.yaml
Alex-Tsvetanov Oct 13, 2023
f3c5431
Update build.yaml
Alex-Tsvetanov Oct 13, 2023
c1c0242
TMP
Alex-Tsvetanov Oct 13, 2023
9e904a2
kamika
Alex-Tsvetanov Oct 13, 2023
1cbce2a
Update ci.yaml
Alex-Tsvetanov Oct 13, 2023
7da5786
Update ci.yaml
Alex-Tsvetanov Oct 13, 2023
f81c09e
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
55c3e20
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
5fba947
Try to trigger other workflow
Alex-Tsvetanov Oct 14, 2023
c4caa8e
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
aec5ca7
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 14, 2023
9d68e63
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 14, 2023
e98c182
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
c4fcc71
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 14, 2023
c4a8374
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
79528c9
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 14, 2023
e30de0d
Delete build.yaml
Alex-Tsvetanov Oct 14, 2023
13858ad
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 14, 2023
6fad9fa
fixes
Alex-Tsvetanov Oct 14, 2023
af65ab4
Fix branch name
Alex-Tsvetanov Oct 14, 2023
970dd25
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 14, 2023
7a109ab
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
33b16ee
Pipeline reports
github-actions[bot] Oct 14, 2023
5a98342
Update ci.yaml
Alex-Tsvetanov Oct 14, 2023
d36128b
Pipeline reports
github-actions[bot] Oct 14, 2023
d593ee1
Pipeline reports
github-actions[bot] Oct 14, 2023
86c2241
Update ci.yaml
Alex-Tsvetanov Oct 15, 2023
ef6e8af
Pipeline reports
github-actions[bot] Oct 15, 2023
0de1076
Update ci.yaml
Alex-Tsvetanov Oct 15, 2023
77cc5c7
Merge branch 'dev/test-pipelines' of https://github.com/WebFrame/Core…
Alex-Tsvetanov Oct 15, 2023
797aeb3
Pipeline reports
github-actions[bot] Oct 15, 2023
70764e0
Update ci.yaml
Alex-Tsvetanov Oct 15, 2023
342061f
Merge branch 'dev/test-pipelines' of https://github.com/WebFrame/Core…
Alex-Tsvetanov Oct 15, 2023
b62dc08
Pipeline reports
github-actions[bot] Oct 15, 2023
b089dda
Update ci.yaml
Alex-Tsvetanov Oct 16, 2023
ee18006
trim the jobs
Alex-Tsvetanov Oct 16, 2023
5446297
Pipeline reports
github-actions[bot] Oct 16, 2023
bc992fb
Update ci.yaml
Alex-Tsvetanov Oct 16, 2023
b762d42
Pipeline reports
github-actions[bot] Oct 16, 2023
d22449e
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
2c9a5e7
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
03a1814
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
80a9f2a
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
2da7c26
token fixes
Alex-Tsvetanov Oct 16, 2023
e66672f
fix tokens
Alex-Tsvetanov Oct 16, 2023
c792835
Pipeline reports
github-actions[bot] Oct 16, 2023
e30a79b
Clean the tokens up
Alex-Tsvetanov Oct 16, 2023
7caf31d
Revert "Clean the tokens up"
Alex-Tsvetanov Oct 16, 2023
998369b
Revert "Revert "Clean the tokens up""
Alex-Tsvetanov Oct 16, 2023
d4aa23e
Pipeline reports
github-actions[bot] Oct 16, 2023
ce43789
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
51936fe
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
000b65d
fasten the testing pipeline
Alex-Tsvetanov Oct 16, 2023
4553431
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
4c2324e
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
196410d
Update benchmark-and-deploy.yaml
Alex-Tsvetanov Oct 16, 2023
c37e279
Merge remote-tracking branch 'origin/main' into dev/test-pipelines
Alex-Tsvetanov Oct 16, 2023
ff6d694
Update ci.yaml
Alex-Tsvetanov Oct 16, 2023
431a9de
naming
Alex-Tsvetanov Oct 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/actions/setup_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: 'setup_cache'
description: 'sets up the shared cache'
inputs:
compiler:
required: true
type: string
build_type:
required: true
type: string
generator:
required: true
type: string
developer_mode:
required: true
type: string


runs:
using: "composite"
steps:
- name: Cache
uses: actions/cache@v2
with:
# You might want to add .ccache to your cache configuration?
path: |
~/.cache/pip
${{ env.HOME }}/.cache/vcpkg/archives
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
${{ env.LOCALAPPDATA }}\vcpkg\archives
${{ env.APPDATA }}\vcpkg\archives
key: ${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.build_type }}-${{ inputs.generator }}-${{ inputs.developer_mode }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
restore-keys: |
${{ runner.os }}-${{ inputs.compiler }}-${{ inputs.build_type }}
67 changes: 38 additions & 29 deletions .github/workflows/benchmark-and-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
run-name: Benchmark & Deploy / ${{ github.event.head_commit.message }}
run-name: Benchmark & Deploy
name: Benchmark & Deploy
on:
workflow_dispatch:
push:
pull_request:
types: [opened]
pull_request_target:
branches:
- "*"

workflow_call:
inputs:
branch:
description: 'Branch ref'
required: true
default: 'main'
type: string
jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
submodules: 'recursive'
- name: Install CppCheck
run: |
Expand All @@ -32,8 +32,9 @@ jobs:
doxygen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
submodules: 'recursive'
- name: Configure
shell: bash
Expand All @@ -52,7 +53,7 @@ jobs:
matrix:
os: [ubuntu-latest]
port: [8888]
server: [ac++-O, ac++-O1, ac++-O2, ac++-O3, ac++-Ofast, ac++-Og, ac++-Os, c++-O, c++-O1, c++-O2, c++-O3, c++-Ofast, c++-Og, c++-Os, python, node]
server: [ac++-O] #, ac++-O1, ac++-O2, ac++-O3, ac++-Ofast, ac++-Og, ac++-Os, c++-O, c++-O1, c++-O2, c++-O3, c++-Ofast, c++-Og, c++-Os] # , python, node]
name: ${{ matrix.os }}-${{ matrix.server }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -66,8 +67,9 @@ jobs:
echo "optimization=$optimization" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
submodules: 'recursive'
- name: Install dependencies on ubuntu
if: startsWith(matrix.server, 'c++') || startsWith(matrix.server, 'ac++')
Expand Down Expand Up @@ -121,8 +123,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
submodules: 'recursive'
- name: Download all artifacts 🔧
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -151,35 +154,41 @@ jobs:
needs: [cppcheck, doxygen, benchmark]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages
submodules: 'recursive'
- name: Download all artifacts 🔧
uses: actions/download-artifact@v3
- name: Prepare
shell: bash
run: |
rm -rf ./reports
mkdir -p ./reports/benchmark ./reports/docs ./reports/codeql_report
mv -f ./cppcheck/* reports/codeql_report/
mv -f ./doxygen/* reports/docs/
mv -f ./benchmark_report/* ./reports/benchmark/
echo "${{ inputs.branch }}" >> branches.txt
cat branches.txt | sort | uniq > branches.txt
rm -rf ./${{ inputs.branch }}/reports
mkdir -p ./${{ inputs.branch }}/reports/benchmark ./${{ inputs.branch }}/reports/docs ./${{ inputs.branch }}/reports/codeql_report
mv -f ./cppcheck/* ./${{ inputs.branch }}/reports/codeql_report/
mv -f ./doxygen/* ./${{ inputs.branch }}/reports/docs/
mv -f ./benchmark_report/* ./${{ inputs.branch }}/reports/benchmark/
- name: Commit the reports
shell: bash
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add reports/
git add ./${{ inputs.branch }}
git commit -m "Pipeline reports"
- name: Push pipeline reports
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Deploy to GitHub Pages 🚀
continue-on-error: true
if: ${{ always() && github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@v4.2.5
github_token: ${{ github.token }}
branch: gh-pages
trigger:
needs: [deploy]
runs-on: ubuntu-latest
name: "📦 Trigger update doc"
steps:
- uses: passeidireto/trigger-external-workflow-action@main
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./reports # The folder the action should deploy.
repository: WebFrame/webframe.github.io
event: doc_update
github_pat: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
30 changes: 23 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
compiler: gcc-11
generator: "Ninja Multi-Config"
build_type: Release

- os: windows-2022
compiler: gcc-11
generator: "Ninja Multi-Config"
build_type: Release

- os: windows-2019
compiler: gcc-11
generator: "Ninja Multi-Config"
Expand Down Expand Up @@ -153,16 +153,16 @@ jobs:
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
${{ env.LOCALAPPDATA }}\vcpkg\archives
${{ env.APPDATA }}\vcpkg\archives
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
restore-keys: |
${{ runner.os }}-${{ env.BUILD_TYPE }}
${{ runner.os }}-${{ matrix.build_type }}

- name: Setup Cache
uses: ./.github/actions/setup_cache
with:
compiler: ${{ matrix.compiler }}
build_type: ${{ matrix.build_type }}
developer_mode: trrue
developer_mode: true
generator: ${{ matrix.generator }}

- name: Setup Cpp
Expand Down Expand Up @@ -231,12 +231,24 @@ jobs:
# flags: ${{ runner.os }}
# name: ${{ runner.os }}-coverage
# files: ./build/coverage.xml

- name: Setup tests
shell: bash
run: |
mkdir -p ./tests/bin/log
mkdir -p ./bin/log
- name: Root dir
shell: bash
run: |
ls .
- name: Build dir
shell: bash
run: |
ls build
- name: Test dir
shell: bash
run: |
ls tests
- name: Run tests
if: contains(matrix.generator, 'Unix Makefiles')
shell: bash
Expand All @@ -252,7 +264,11 @@ jobs:
shell: bash
run: |
./build/tests/${{matrix.build_type}}/Core-Tests.exe
benchmarks:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
doc:
needs: [builds]
uses: ./.github/workflows/benchmark-and-deploy.yaml
with:
Expand Down
123 changes: 0 additions & 123 deletions .github/workflows/compilation.yaml

This file was deleted.

Loading