Skip to content

Commit

Permalink
Merge pull request #3 from wasix-org/wasix-compat
Browse files Browse the repository at this point in the history
WASIX compatibility
  • Loading branch information
syrusakbary authored Sep 17, 2024
2 parents 5bdfcd4 + 6a2a78d commit 84b59f7
Show file tree
Hide file tree
Showing 11 changed files with 1,056 additions and 855 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: audit
on:
schedule:
- cron: '10 01 * * *' # Every day at 01:10 UTC
push:
branches:
- master
paths:
- "**/Cargo.lock"
- "**/Cargo.toml"
pull_request:
branches:
- master
paths:
- "**/Cargo.lock"
- "**/Cargo.toml"
# name: audit
# on:
# schedule:
# - cron: '10 01 * * *' # Every day at 01:10 UTC
# push:
# branches:
# - master
# paths:
# - "**/Cargo.lock"
# - "**/Cargo.toml"
# pull_request:
# branches:
# - master
# paths:
# - "**/Cargo.lock"
# - "**/Cargo.toml"

jobs:
audit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
# jobs:
# audit:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 1

- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions-rs/audit-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
116 changes: 58 additions & 58 deletions .github/workflows/devel.code-analyzer.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
name: code-analyzer
on:
push:
branches:
- master
paths:
- .github/workflows/devel.yml
- .github/workflows/devel.code-analyzer.yml
- .cargo/config.toml
- Cargo.lock
- Cargo.toml
- src/**
- tests/**
merge_group:
branches:
- master
pull_request:
branches:
- master
paths:
- .github/workflows/devel.yml
- .github/workflows/devel.code-analyzer.yml
- .cargo/config.toml
- Cargo.lock
- Cargo.toml
- src/**
- tests/**
schedule:
- cron: '20 02 * * 1' # Runs at 02:20, only on Monday
# name: code-analyzer
# on:
# push:
# branches:
# - master
# paths:
# - .github/workflows/devel.yml
# - .github/workflows/devel.code-analyzer.yml
# - .cargo/config.toml
# - Cargo.lock
# - Cargo.toml
# - src/**
# - tests/**
# merge_group:
# branches:
# - master
# pull_request:
# branches:
# - master
# paths:
# - .github/workflows/devel.yml
# - .github/workflows/devel.code-analyzer.yml
# - .cargo/config.toml
# - Cargo.lock
# - Cargo.toml
# - src/**
# - tests/**
# schedule:
# - cron: '20 02 * * 1' # Runs at 02:20, only on Monday

jobs:
analyze:
name: analyze
runs-on: ubuntu-22.04
permissions:
contents: read
security-events: write
actions: read
# jobs:
# analyze:
# name: analyze
# runs-on: ubuntu-22.04
# permissions:
# contents: read
# security-events: write
# actions: read

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 1

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# components: rustfmt, clippy

- name: Install crates
run: cargo install clippy-sarif sarif-fmt
# - name: Install crates
# run: cargo install clippy-sarif sarif-fmt

- name: Run clippy
continue-on-error: true
run: |
cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
# - name: Run clippy
# continue-on-error: true
# run: |
# cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
# - name: Upload analysis results to GitHub
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: rust-clippy-results.sarif
# wait-for-processing: true
Loading

0 comments on commit 84b59f7

Please sign in to comment.