Skip to content

Commit

Permalink
repo migration
Browse files Browse the repository at this point in the history
  • Loading branch information
stneng committed May 11, 2022
0 parents commit 24ed955
Show file tree
Hide file tree
Showing 33 changed files with 5,725 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on: [push]

name: build

jobs:
check:
runs-on: self-hosted
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_KEY }}
- name: SSH Agent
run: |
eval `ssh-agent`
ssh-add - <<< "${{ secrets.SSH_KEY }}"
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
- name: Check
run: cargo check --release --locked
- name: Build
run: cargo build --all-targets --locked
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy test
run: cargo clippy --profile test -- -D warnings -D clippy::dbg_macro
- name: Pull and Build SDK
env:
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: bash pull-and-build-sdk.sh
working-directory: tests
- name: Run tests
run: cargo test
timeout-minutes: 10
21 changes: 21 additions & 0 deletions .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- main

name: trigger

jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: "CoLearn-Dev",
repo: "colink-integration-test-dev",
workflow_id: "test.yml",
ref: "main"
})
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/target
/.idea
/.vscode
admin_token.txt
/tests/sdk-a/
/tests/sdk-p/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "proto"]
path = proto
url = git@github.com:CoLearn-Dev/colink-proto-dev.git
Loading

0 comments on commit 24ed955

Please sign in to comment.