Skip to content

Commit

Permalink
Merge pull request #270 from CoinFabrik/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
tenuki authored Apr 29, 2024
2 parents 019c3c6 + 1092a87 commit ab35ef4
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test-detectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
# - macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- macos-latest
# - macos-latest
detector: ${{fromJson(needs.prepare-detector-matrix.outputs.matrix)}}
runs-on: ${{ matrix.os }}
outputs:
Expand Down Expand Up @@ -137,10 +137,10 @@ jobs:
working-directory: build-status-ubuntu-latest
run: echo "status=$(cat status-ubuntu-latest.txt)" >> $GITHUB_OUTPUT

- name: Read macOS build status
id: macos_status
working-directory: build-status-macos-latest
run: echo "status=$(cat status-macos-latest.txt)" >> $GITHUB_OUTPUT
# - name: Read macOS build status
# id: macos_status
# working-directory: build-status-macos-latest
# run: echo "status=$(cat status-macos-latest.txt)" >> $GITHUB_OUTPUT

- name: Find comment
id: find_comment
Expand All @@ -163,7 +163,8 @@ jobs:
|-------------------------|--------|
| Detector Validation | ${{ (needs.validate-detectors.outputs.status == 'success' && '✅ Successful') || '❌ Failed' }} |
| Build on Ubuntu | ${{ (steps.ubuntu_status.outputs.status == 'success' && '✅ Successful') || '❌ Failed' }} |
| Build on macOS | ${{ (steps.macos_status.outputs.status == 'success' && '✅ Successful') || '❌ Failed' }} |
| Tests Execution | ${{ (needs.test.outputs.status == 'success' && '✅ Successful') || '❌ Failed' }} |
The workflow has completed. Great job! 🚀
# | Build on macOS | ${{ (steps.macos_status.outputs.status == 'success' && '✅ Successful') || '❌ Failed' }} |
2 changes: 1 addition & 1 deletion detectors/unsafe-expect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,4 @@ impl<'tcx> LateLintPass<'tcx> for UnsafeExpect {

walk_expr(&mut visitor, body.value);
}
}
}
2 changes: 1 addition & 1 deletion detectors/unsafe-unwrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,4 @@ impl<'tcx> LateLintPass<'tcx> for UnsafeUnwrap {

walk_expr(&mut visitor, body.value);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
authors = ["[your_name] <[your_email]>"]

[lib]
path = "lib.rs"
path = "src/lib.rs"

[features]
default = ["std"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
authors = ["[your_name] <[your_email]>"]

[lib]
path = "lib.rs"
path = "src/lib.rs"

[features]
default = ["std"]
Expand All @@ -23,4 +23,4 @@ scale = { workspace = true }
scale-info = { workspace = true }

[dev-dependencies]
ink_e2e = { workspace = true }
ink_e2e = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub use self::vault::{Vault, VaultRef};
#[ink::contract]
mod vault {
use core::result::Result;

use ink::{
env::call::{build_call, Selector},
storage::Mapping,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub use self::vault::{Vault, VaultRef};
#[ink::contract]
mod vault {
use core::result::Result;

use ink::{
env::call::{build_call, Selector},
storage::Mapping,
Expand Down

0 comments on commit ab35ef4

Please sign in to comment.