Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Reorganize repo (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cldfire authored Feb 7, 2021
1 parent c939d8a commit 35f599c
Show file tree
Hide file tree
Showing 14 changed files with 824 additions and 22 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
schedule:
- cron: '0 0 * * 0'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
branches:
- main
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'

name: Rust Security audit

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 2 additions & 6 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
# unfortunately we can't specify a working directory here :(
args: --manifest-path rust/Cargo.toml

test:
name: Test
Expand All @@ -38,8 +36,6 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
# unfortunately we can't specify a working directory here :(
args: --manifest-path rust/Cargo.toml

fmt:
name: Rustfmt
Expand All @@ -54,7 +50,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path rust/Cargo.toml --all -- --check
args: --all -- --check

clippy:
name: Clippy
Expand All @@ -69,4 +65,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path rust/Cargo.toml -- -D warnings
args: -- -D warnings
13 changes: 3 additions & 10 deletions .github/workflows/swift-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ on:

name: Swift CI

defaults:
run:
working-directory: swift

jobs:
lint:
Lint:
runs-on: macos-latest
env:
MINT_PATH: ${{ github.workspace }}/mint
Expand All @@ -27,20 +23,17 @@ jobs:
restore-keys: ${{ runner.os }}-mint-

- name: Install Dependencies
run: sh scripts/bootstrap.sh
working-directory: swift
run: sh swift/scripts/bootstrap.sh

- name: SwiftLint
run: mint run swiftlint
working-directory: swift

- name: SwiftFormat
run: mint run swiftformat . --lint
working-directory: swift

# TODO: I think this job is running into the big sur issue described in
# https://github.com/TimNN/cargo-lipo/issues/41#issuecomment-745623541
# test:
# Test:
# runs-on: macos-latest
# steps:
# - name: Checkout
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/rust/target
Cargo.lock
/target

xcuserdata/
.DS_Store
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 35f599c

Please sign in to comment.