mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
fun with rust caching
This commit is contained in:
parent
f73e51e94c
commit
aa9192eef1
2 changed files with 55 additions and 53 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -19,16 +19,18 @@ jobs:
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Set up cargo cache
|
- name: Set up cargo cache
|
||||||
uses: actions/cache@v3
|
uses: actions/rust-cache@v2
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
with:
|
with:
|
||||||
|
workspaces: |
|
||||||
|
zeroidc/
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
./zeroidc/target/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-cargo-
|
restore-keys: ${{ runner.os }}-cargo-
|
||||||
- name: make
|
- name: make
|
||||||
run: make
|
run: make
|
||||||
|
|
100
.github/workflows/validate.yml
vendored
100
.github/workflows/validate.yml
vendored
|
@ -1,57 +1,57 @@
|
||||||
on: [ push ]
|
# on: [ push ]
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
build_ubuntu:
|
# build_ubuntu:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: gitconfig
|
# - name: gitconfig
|
||||||
run: |
|
# run: |
|
||||||
git config --global core.autocrlf input
|
# git config --global core.autocrlf input
|
||||||
|
|
||||||
- name: checkout
|
# - name: checkout
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Rust
|
# - name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# uses: actions-rs/toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
target: x86_64-unknown-linux-gnu
|
# target: x86_64-unknown-linux-gnu
|
||||||
override: true
|
# override: true
|
||||||
components: rustfmt, clippy
|
# components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Set up cargo cache
|
# - name: Set up cargo cache
|
||||||
uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
with:
|
# with:
|
||||||
path: |
|
# path: |
|
||||||
~/.cargo/bin/
|
# ~/.cargo/bin/
|
||||||
~/.cargo/registry/index/
|
# ~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
# ~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
# ~/.cargo/git/db/
|
||||||
**/target/
|
# **/target/
|
||||||
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: validate-1m-linux
|
# - name: validate-1m-linux
|
||||||
env:
|
# env:
|
||||||
CC: 'gcc'
|
# CC: 'gcc'
|
||||||
CXX: 'g++'
|
# CXX: 'g++'
|
||||||
BRANCH: ${{ github.ref_name }}
|
# BRANCH: ${{ github.ref_name }}
|
||||||
run: |
|
# run: |
|
||||||
sudo apt install -y valgrind xmlstarlet gcovr iperf3
|
# sudo apt install -y valgrind xmlstarlet gcovr iperf3
|
||||||
make one ZT_COVERAGE=1 ZT_TRACE=1
|
# make one ZT_COVERAGE=1 ZT_TRACE=1
|
||||||
sudo chmod +x ./.github/workflows/validate-1m-linux.sh
|
# sudo chmod +x ./.github/workflows/validate-1m-linux.sh
|
||||||
sudo ./.github/workflows/validate-1m-linux.sh
|
# sudo ./.github/workflows/validate-1m-linux.sh
|
||||||
|
|
||||||
- name: Archive test results
|
# - name: Archive test results
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: ${{github.sha}}-test-results
|
# name: ${{github.sha}}-test-results
|
||||||
path: "*test-results*"
|
# path: "*test-results*"
|
||||||
|
|
||||||
- name: final-report
|
# - name: final-report
|
||||||
run: |
|
# run: |
|
||||||
sudo chmod +x ./.github/workflows/report.sh
|
# sudo chmod +x ./.github/workflows/report.sh
|
||||||
sudo ./.github/workflows/report.sh
|
# sudo ./.github/workflows/report.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue