Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
koenigl2
OpenSK
Commits
6c96c639
Commit
6c96c639
authored
5 years ago
by
Jean-Michel Picod
Browse files
Options
Downloads
Patches
Plain Diff
Split cargo fmt and cargo check into 2 workflows
parent
b152bf98
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/cargo_check.yml
+1
-19
1 addition, 19 deletions
.github/workflows/cargo_check.yml
.github/workflows/cargo_fmt.yml
+47
-0
47 additions, 0 deletions
.github/workflows/cargo_fmt.yml
with
48 additions
and
19 deletions
.github/workflows/
rust
.yml
→
.github/workflows/
cargo_check
.yml
+
1
−
19
View file @
6c96c639
...
...
@@ -11,7 +11,7 @@ on: [push]
# - '!third_party/**'
jobs
:
cargo
:
cargo
_check
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -28,24 +28,6 @@ jobs:
-
name
:
Set up OpenSK
run
:
./setup.sh
-
name
:
Cargo format src/
uses
:
actions-rs/cargo@v1
with
:
command
:
fmt
args
:
--all -- --check
-
name
:
Cargo format libraries/cbor
uses
:
actions-rs/cargo@v1
with
:
command
:
fmt
args
:
--manifest-path libraries/cbor/Cargo.toml --all -- --check
-
name
:
Cargo format libraries/crypto
uses
:
actions-rs/cargo@v1
with
:
command
:
fmt
args
:
--manifest-path libraries/crypto/Cargo.toml --all -- --check
-
name
:
Check OpenSK w/o features
uses
:
actions-rs/cargo@v1
with
:
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/cargo_fmt.yml
0 → 100644
+
47
−
0
View file @
6c96c639
name
:
Cargo format
on
:
[
push
]
# push:
# paths:
# - 'examples/*.rs'
# - 'libraries/**/*.rs'
# - 'src/**/*.rs'
# - 'patches/**'
# - '**/Cargo.toml'
# - '.cargo/config'
# - '!third_party/**'
jobs
:
cargo_format
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions-rs/toolchain@v1
with
:
toolchain
:
nightly
target
:
thumbv7em-none-eabi
override
:
true
-
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Install Python dependencies
run
:
python -m pip install --upgrade pip setuptools wheel
-
name
:
Set up OpenSK
run
:
./setup.sh
-
name
:
Cargo format src/
uses
:
actions-rs/cargo@v1
with
:
command
:
fmt
args
:
--all -- --check
-
name
:
Cargo format libraries/cbor
uses
:
actions-rs/cargo@v1
with
:
command
:
fmt
args
:
--manifest-path libraries/cbor/Cargo.toml --all -- --check
-
name
:
Cargo format libraries/crypto
uses
:
actions-rs/cargo@v1
with
:
command
:
fmt
args
:
--manifest-path libraries/crypto/Cargo.toml --all -- --check
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment