Skip to content

Commit

Permalink
Merge pull request #36 from medexs/rewrite-actions
Browse files Browse the repository at this point in the history
ci(.github/workflows/): don't use 3rd party actions
  • Loading branch information
pavelpolach321 authored Feb 13, 2025
2 parents 24f8e16 + 21c8413 commit 0a5d9d9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 37 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/build_docs_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,18 @@ jobs:
- name: Checkout Repository
uses: actions/[email protected]

- name: Install Doxygen and Graphviz
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: doxygen graphviz
version: 1.0 # Version of cache to load. Each version will have its own cache.
- name: Install dependencies
run: |
sudo apt-get install doxygen graphviz cmake
- name: Build docs
uses: threeal/[email protected]
with:
source-dir: ./
build-dir: build
options: |
LT_BUILD_DOCS=ON
LT_USE_TREZOR_CRYPTO=ON
- name: Generate Doxygen HTML documentation
run: |
cmake ./ -B build -DLT_BUILD_DOCS=ON
pushd build/
make doc_doxygen
popd
- name: Upload built html as artifact
- name: Upload built HTML as artifact
id: html_artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/build_docs_upload_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ jobs:
- name: Checkout Repository
uses: actions/[email protected]

- name: Install Doxygen and Graphviz
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: doxygen graphviz
version: 1.0 # Version of cache to load. Each version will have its own cache.
- name: Install dependencies
run: |
sudo apt-get install doxygen graphviz cmake
- name: Build docs
uses: threeal/[email protected]
with:
source-dir: ./
build-dir: build
options: |
LT_BUILD_DOCS=ON
LT_USE_TREZOR_CRYPTO=ON
- name: Generate Doxygen HTML documentation
run: |
cmake ./ -B build -DLT_BUILD_DOCS=ON
pushd build/
make doc_doxygen
popd
- name: Upload HTML docs artifact
uses: actions/[email protected]
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,15 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2

- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 13

- name: Install dependencies
run: |
sudo apt-get install cppcheck
sudo apt-get install cmake build-essential cppcheck
- name: Checkout Repository
uses: actions/[email protected]

- name: Run CodeChecker analysis
uses: whisperity/codechecker-analysis-action@v1
uses: tropicsquare/github-actions/CodeChecker-Action-1.0.4@main
id: codechecker
with:
config: ./scripts/codechecker/codechecker_config.json
Expand Down

0 comments on commit 0a5d9d9

Please sign in to comment.