Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvshvp-oss committed Mar 18, 2024
1 parent 7f7c987 commit ae69354
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
with:
subcommand: doc
arguments: '--all-features --workspace --no-deps --document-private-items'
arguments: '--workspace --all-features --no-deps --document-private-items'
rust_release_channel: nightly
use_cross: false
compilation_target: ${{ matrix.compilation_target }}
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/code_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,23 @@ jobs:
platform: linux
toolchain: gnu
- subcommand: fmt
job_name: πŸ“‘ Cargo Fmt Job
job_name: πŸ“‘ Format Job
arguments: '--verbose -- --check'
- subcommand: clippy
job_name: πŸ“Ž Cargo Clippy Job
job_name: πŸ“Ž Clippy Job
arguments: '--workspace -- -D warnings'
- subcommand: check
job_name: βœ… Cargo Check Job
job_name: βœ… Check Job
arguments: '--workspace'
- subcommand: test
job_name: πŸ§ͺ Cargo Test Job
job_name: πŸ§ͺ Test Job
arguments: '--workspace'
- subcommand: doc
job_name: πŸ“œ Documentation Job
arguments: '--workspace --all-features --no-deps --document-private-items'
- subcommand: build
job_name: πŸ”¨ Build Job
arguments: '--workspace --all-features --release'
runs-on: ${{ matrix.cicd_runner }}
steps:
- name: ↕️ Install Ubuntu Dependencies Step
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/test_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
on:
workflow_dispatch: # Run when manually triggered
workflow_call: # Run when called by another workflow

name: Test

jobs:
test_action_job:
name: ${{ matrix.job_name }}
strategy:
fail-fast: false
matrix:
platform:
- linux
# - windows
# - apple
cpu_architecture:
- x86_64
# - aarch64
subcommand:
# - fmt
# - clippy
# - check
# - test
- build
exclude:
- platform: windows
cpu_architecture: aarch64
- platform: apple
cpu_architecture: aarch64
include:
- platform: linux
cicd_runner: ubuntu-latest
- platform: windows
cicd_runner: windows-latest
- platform: apple
cicd_runner: macos-latest
- use_cross: true
- compilation_target: x86_64-unknown-linux-gnu
cpu_architecture: x86_64
platform: linux
toolchain: gnu
use_cross: false
- compilation_target: x86_64-pc-windows-msvc
cpu_architecture: x86_64
platform: windows
toolchain: msvc
use_cross: false
- compilation_target: x86_64-apple-darwin
cpu_architecture: x86_64
platform: apple
toolchain: darwin
use_cross: false
- compilation_target: aarch64-unknown-linux-gnu
cpu_architecture: aarch64
platform: linux
toolchain: gnu
- subcommand: fmt
job_name: πŸ“‘ Format Job
arguments: '--verbose -- --check'
- subcommand: clippy
job_name: πŸ“Ž Clippy Job
arguments: '--workspace -- -D warnings'
- subcommand: check
job_name: βœ… Check Job
arguments: '--workspace'
- subcommand: test
job_name: πŸ§ͺ Test Job
arguments: '--workspace'
- subcommand: doc
job_name: πŸ“œ Documentation Job
arguments: '--workspace --all-features --no-deps --document-private-items'
- subcommand: build
job_name: πŸ”¨ Build Job
arguments: '--workspace --all-features --release'
runs-on: ${{ matrix.cicd_runner }}
steps:
- name: ↕️ Install Ubuntu Dependencies Step
id: dependencies_install_step
if: ${{ matrix.compilation_target == 'x86_64-unknown-linux-gnu' }}
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-4-dev
version: 1.0
- name: ${{ matrix.job_name }}
id: task_step
uses: pax-hub/rust-github-action@main
with:
subcommand: ${{ matrix.subcommand }}
arguments: ${{ matrix.arguments }}
rust_release_channel: nightly
use_cross: ${{ matrix.use_cross }}
compilation_target: ${{ matrix.compilation_target }}

0 comments on commit ae69354

Please sign in to comment.