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
|
2023-04-26 11:13:09 +00:00
|
|
|
target: x86_64-unknown-linux-gnu
|
2022-12-14 18:10:08 +00:00
|
|
|
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
|
2023-05-01 23:30:22 +00:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2022-12-14 18:10:08 +00:00
|
|
|
continue-on-error: false
|
|
|
|
with:
|
2023-05-01 23:30:22 +00:00
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
|
|
|
|
shared-key: ${{ runner.os }}-cargo-
|
|
|
|
workspaces: |
|
|
|
|
zeroidc/
|
|
|
|
|
2022-12-14 18:10:08 +00:00
|
|
|
- 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
|
2023-05-01 23:30:22 +00:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2022-12-14 18:10:08 +00:00
|
|
|
continue-on-error: false
|
|
|
|
with:
|
2023-05-01 23:30:22 +00:00
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
|
|
|
|
shared-key: ${{ runner.os }}-cargo-
|
|
|
|
workspaces: |
|
|
|
|
zeroidc/
|
|
|
|
|
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
|
2023-05-01 23:30:22 +00:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2022-12-14 18:10:08 +00:00
|
|
|
continue-on-error: false
|
|
|
|
with:
|
2023-05-01 23:30:22 +00:00
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
|
|
|
|
shared-key: ${{ runner.os }}-cargo-
|
|
|
|
workspaces: |
|
|
|
|
zeroidc/
|
|
|
|
|
2022-12-14 10:52:30 +00:00
|
|
|
- name: setup msbuild
|
|
|
|
uses: microsoft/setup-msbuild@v1.1.3
|
|
|
|
- name: msbuild
|
|
|
|
run: |
|
2023-05-02 15:53:29 +00:00
|
|
|
msbuild windows\ZeroTierOne.sln /m /p:Configuration=Release /property:Platform=x64 /t:ZeroTierOne
|