mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 13:36:54 +02:00
Caching should now work
This commit is contained in:
parent
71cd538e34
commit
220f1a1833
2 changed files with 50 additions and 76 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
@ -24,14 +24,6 @@ jobs:
|
|||
with:
|
||||
workspaces: |
|
||||
zeroidc/
|
||||
# path: |
|
||||
# ~/.cargo/bin/
|
||||
# ~/.cargo/registry/index/
|
||||
# ~/.cargo/registry/cache/
|
||||
# ~/.cargo/git/db/
|
||||
# ./zeroidc/target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
|
||||
restore-keys: ${{ runner.os }}-cargo-
|
||||
- name: make
|
||||
run: make
|
||||
- name: selftest
|
||||
|
@ -56,17 +48,11 @@ jobs:
|
|||
override: true
|
||||
components: rustfmt, clippy
|
||||
- name: Set up cargo cache
|
||||
uses: actions/cache@v3
|
||||
uses: Swatinem/rust-cache@v2
|
||||
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-
|
||||
workspaces: |
|
||||
zeroidc/
|
||||
- name: make
|
||||
run: make
|
||||
- name: selftest
|
||||
|
@ -91,17 +77,11 @@ jobs:
|
|||
override: true
|
||||
components: rustfmt, clippy
|
||||
- name: Set up cargo cache
|
||||
uses: actions/cache@v3
|
||||
uses: Swatinem/rust-cache@v2
|
||||
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-
|
||||
workspaces: |
|
||||
zeroidc/
|
||||
- name: setup msbuild
|
||||
uses: microsoft/setup-msbuild@v1.1.3
|
||||
- name: msbuild
|
||||
|
|
94
.github/workflows/validate.yml
vendored
94
.github/workflows/validate.yml
vendored
|
@ -1,57 +1,51 @@
|
|||
# on: [ push ]
|
||||
on: [ push ]
|
||||
|
||||
# jobs:
|
||||
# build_ubuntu:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: gitconfig
|
||||
# run: |
|
||||
# git config --global core.autocrlf input
|
||||
jobs:
|
||||
build_ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: gitconfig
|
||||
run: |
|
||||
git config --global core.autocrlf input
|
||||
|
||||
# - name: checkout
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# - name: Install Rust
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# target: x86_64-unknown-linux-gnu
|
||||
# override: true
|
||||
# components: rustfmt, clippy
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-unknown-linux-gnu
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
|
||||
# - 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: Set up cargo cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
continue-on-error: false
|
||||
with:
|
||||
workspaces: |
|
||||
zeroidc/
|
||||
|
||||
# - name: validate-1m-linux
|
||||
# env:
|
||||
# CC: 'gcc'
|
||||
# CXX: 'g++'
|
||||
# BRANCH: ${{ github.ref_name }}
|
||||
# run: |
|
||||
# sudo apt install -y valgrind xmlstarlet gcovr iperf3
|
||||
# make one ZT_COVERAGE=1 ZT_TRACE=1
|
||||
# sudo chmod +x ./.github/workflows/validate-1m-linux.sh
|
||||
# sudo ./.github/workflows/validate-1m-linux.sh
|
||||
- name: validate-1m-linux
|
||||
env:
|
||||
CC: 'gcc'
|
||||
CXX: 'g++'
|
||||
BRANCH: ${{ github.ref_name }}
|
||||
run: |
|
||||
sudo apt install -y valgrind xmlstarlet gcovr iperf3
|
||||
make one ZT_COVERAGE=1 ZT_TRACE=1
|
||||
sudo chmod +x ./.github/workflows/validate-1m-linux.sh
|
||||
sudo ./.github/workflows/validate-1m-linux.sh
|
||||
|
||||
# - name: Archive test results
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: ${{github.sha}}-test-results
|
||||
# path: "*test-results*"
|
||||
- name: Archive test results
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{github.sha}}-test-results
|
||||
path: "*test-results*"
|
||||
|
||||
# - name: final-report
|
||||
# run: |
|
||||
# sudo chmod +x ./.github/workflows/report.sh
|
||||
# sudo ./.github/workflows/report.sh
|
||||
- name: final-report
|
||||
run: |
|
||||
sudo chmod +x ./.github/workflows/report.sh
|
||||
sudo ./.github/workflows/report.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue