mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
tweaking github build
This commit is contained in:
parent
8eedf70a1f
commit
e6c2bd76a1
1 changed files with 14 additions and 46 deletions
60
.github/workflows/build.yml
vendored
60
.github/workflows/build.yml
vendored
|
@ -20,8 +20,14 @@ jobs:
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
restore-keys: ${{ runner.os }}-cargo-
|
||||||
|
|
||||||
- name: make
|
- name: cargo fmt
|
||||||
run: make
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
|
- name: cargo build
|
||||||
|
run: cargo build
|
||||||
|
|
||||||
|
- name: cargo test
|
||||||
|
run: cargo test
|
||||||
|
|
||||||
build_macos:
|
build_macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -42,52 +48,14 @@ jobs:
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
restore-keys: ${{ runner.os }}-cargo-
|
||||||
|
|
||||||
- name: make
|
- name: cargo fmt
|
||||||
run: make
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
test_ubuntu:
|
- name: cargo build
|
||||||
runs-on: ubuntu-latest
|
run: cargo build
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up cargo cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
continue-on-error: false
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
|
||||||
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
run: cargo test -v
|
run: cargo test
|
||||||
|
|
||||||
test_macos:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up cargo cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
continue-on-error: false
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
|
||||||
|
|
||||||
- name: cargo test
|
|
||||||
run: cargo test -v
|
|
||||||
|
|
||||||
# build_windows:
|
# build_windows:
|
||||||
# runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
|
|
Loading…
Add table
Reference in a new issue