2023-01-13 12:07:20 +00:00
|
|
|
on: [ push ]
|
2022-12-13 15:49:08 +00:00
|
|
|
|
2022-12-12 08:44:31 +00:00
|
|
|
jobs:
|
|
|
|
build_ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-14 18:10:08 +00:00
|
|
|
- name: gitconfig
|
|
|
|
run: |
|
2023-03-07 21:50:34 +00:00
|
|
|
git config --global core.autocrlf input
|
|
|
|
# git config --global core.eol lf
|
2022-12-14 18:10:08 +00:00
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
target: aarch64-apple-darwin
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
2022-12-13 15:49:08 +00:00
|
|
|
|
2022-12-14 18:10:08 +00:00
|
|
|
- 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: make
|
|
|
|
run: make
|
|
|
|
- name: selftest
|
|
|
|
run: |
|
|
|
|
make selftest
|
|
|
|
./zerotier-selftest
|
2022-12-12 08:44:31 +00:00
|
|
|
|
2022-12-13 15:16:17 +00:00
|
|
|
build_macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2022-12-14 18:10:08 +00:00
|
|
|
- name: gitconfig
|
|
|
|
run: |
|
2023-03-07 21:50:34 +00:00
|
|
|
git config --global core.autocrlf input
|
|
|
|
# git config --global core.eol lf
|
2022-12-13 15:16:17 +00:00
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-12-14 18:10:08 +00:00
|
|
|
- name: Install Rust
|
2022-12-13 15:49:08 +00:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
target: aarch64-apple-darwin
|
|
|
|
override: true
|
2022-12-14 18:10:08 +00:00
|
|
|
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-
|
2022-12-13 15:16:17 +00:00
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: selftest
|
2022-12-14 18:10:08 +00:00
|
|
|
run: |
|
|
|
|
make selftest
|
|
|
|
./zerotier-selftest
|
2022-12-13 15:49:08 +00:00
|
|
|
|
2022-12-14 10:52:30 +00:00
|
|
|
build_windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: gitconfig
|
|
|
|
run: |
|
2023-03-07 21:50:34 +00:00
|
|
|
git config --global core.autocrlf true
|
|
|
|
# git config --global core.eol lf
|
2022-12-14 10:52:30 +00:00
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-12-14 18:10:08 +00:00
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
target: aarch64-apple-darwin
|
|
|
|
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-
|
2022-12-14 10:52:30 +00:00
|
|
|
- name: setup msbuild
|
|
|
|
uses: microsoft/setup-msbuild@v1.1.3
|
|
|
|
- name: msbuild
|
|
|
|
run: |
|
2022-12-14 18:10:08 +00:00
|
|
|
msbuild windows\ZeroTierOne.sln /m /p:Configuration=Release /property:Platform=x64 /t:ZeroTierOne:Rebuild
|