Skip to content

Commit

Permalink
ci(dep): move out from main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Dec 23, 2023
1 parent eed4d9d commit a32a0bc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/actions/install-conta/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ runs:
key: ${{ runner.os }}-conta

- name: Install Conta
shell: bash
run: cargo install conta
19 changes: 19 additions & 0 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deps

on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
review:
name: Review
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v3
10 changes: 0 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,3 @@ jobs:
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all -- -D warnings

dep:
name: Review
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v3
4 changes: 2 additions & 2 deletions codegen/src/codegen/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct Dispatcher<'d> {
pub table: JumpTable,
/// ABI for the current function
///
/// TODO: refactor this. (#192)
/// TODO: refactor this. (#206)
pub abi: Vec<Abi>,
}

Expand Down Expand Up @@ -186,7 +186,7 @@ impl<'d> Dispatcher<'d> {
fn emit_selector(&mut self, selector: &wasm::Function<'_>, last: bool) -> Result<()> {
let abi = self.load_abi(selector)?;

// TODO: refactor this. (#192)
// TODO: refactor this. (#206)
self.abi.push(abi.clone());

let selector_bytes = abi.selector();
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions codegen/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
mod code;
mod constructor;
mod dispatcher;
mod func;
mod function;

pub use self::{
code::{Code, ExtFunc},
constructor::Constructor,
dispatcher::Dispatcher,
func::Function,
function::Function,
};

0 comments on commit a32a0bc

Please sign in to comment.