Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Grant Limberg
d2c745c285
.
Some checks failed
/ build_ubuntu_x64 (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
2024-08-15 11:45:38 -07:00
Grant Limberg
e5ecb28841
runner 2024-08-15 11:41:49 -07:00

View file

@ -1,21 +1,20 @@
on: [ push ] on: [ push ]
jobs: jobs:
build_ubuntu: build_ubuntu_x64:
runs-on: ubuntu-latest runs-on: gha-runner-x64
steps: steps:
- name: gitconfig # - name: gitconfig
run: | # run: |
git config --global core.autocrlf input # git config --global core.autocrlf input
# git config --global core.eol lf # # git config --global core.eol lf
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu
override: true
components: rustfmt, clippy components: rustfmt, clippy
- name: Set up cargo cache - name: Set up cargo cache
@ -34,72 +33,72 @@ jobs:
make selftest make selftest
./zerotier-selftest ./zerotier-selftest
build_macos: # build_macos:
runs-on: macos-latest # runs-on: macos-latest
steps: # steps:
- name: gitconfig # - name: gitconfig
run: | # run: |
git config --global core.autocrlf input # git config --global core.autocrlf input
# git config --global core.eol lf # # git config --global core.eol lf
- name: checkout # - name: checkout
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Install Rust aarch64 # - name: Install Rust aarch64
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
toolchain: stable # toolchain: stable
target: aarch64-apple-darwin # target: aarch64-apple-darwin
override: true # override: true
components: rustfmt, clippy # components: rustfmt, clippy
- name: Install Rust x86_64 # - name: Install Rust x86_64
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
toolchain: stable # toolchain: stable
target: x86_64-apple-darwin # target: x86_64-apple-darwin
override: true # override: true
components: rustfmt, clippy # components: rustfmt, clippy
- name: Set up cargo cache # - name: Set up cargo cache
uses: Swatinem/rust-cache@v2 # uses: Swatinem/rust-cache@v2
continue-on-error: false # continue-on-error: false
with: # with:
key: ${{ runner.os }}-cargo-${{ hashFiles('rustybits//Cargo.lock') }} # key: ${{ runner.os }}-cargo-${{ hashFiles('rustybits//Cargo.lock') }}
shared-key: ${{ runner.os }}-cargo- # shared-key: ${{ runner.os }}-cargo-
workspaces: | # workspaces: |
rustybits/ # rustybits/
- name: make # - name: make
run: make # run: make
- name: selftest # - name: selftest
run: | # run: |
make selftest # make selftest
./zerotier-selftest # ./zerotier-selftest
build_windows: # build_windows:
runs-on: windows-latest # runs-on: windows-latest
steps: # steps:
- name: gitconfig # - name: gitconfig
run: | # run: |
git config --global core.autocrlf true # git config --global core.autocrlf true
# git config --global core.eol lf # # git config --global core.eol lf
- name: checkout # - name: checkout
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Install Rust # - name: Install Rust
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
toolchain: stable # toolchain: stable
target: aarch64-apple-darwin # target: aarch64-apple-darwin
override: true # override: true
components: rustfmt, clippy # components: rustfmt, clippy
- name: Set up cargo cache # - name: Set up cargo cache
uses: Swatinem/rust-cache@v2 # uses: Swatinem/rust-cache@v2
continue-on-error: false # continue-on-error: false
with: # with:
key: ${{ runner.os }}-cargo-${{ hashFiles('rustybits//Cargo.lock') }} # key: ${{ runner.os }}-cargo-${{ hashFiles('rustybits//Cargo.lock') }}
shared-key: ${{ runner.os }}-cargo- # shared-key: ${{ runner.os }}-cargo-
workspaces: | # workspaces: |
rustybits/ # rustybits/
- name: setup msbuild # - name: setup msbuild
uses: microsoft/setup-msbuild@v1.1.3 # uses: microsoft/setup-msbuild@v1.1.3
- name: msbuild # - name: msbuild
run: | # run: |
msbuild windows\ZeroTierOne.sln /m /p:Configuration=Release /property:Platform=x64 /t:ZeroTierOne # msbuild windows\ZeroTierOne.sln /m /p:Configuration=Release /property:Platform=x64 /t:ZeroTierOne