-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
1,150 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,8 +43,10 @@ jobs: | |
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout binaries submodule | ||
run: git submodule update --init --depth=1 dist-assets/binaries | ||
- name: Checkout submodules | ||
run: | | ||
git submodule update --init --depth=1 dist-assets/binaries | ||
git submodule update --init --recursive --depth=1 wireguard-go-rs | ||
- uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -58,6 +60,12 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install libdbus-1-dev | ||
- name: Install Go | ||
if: matrix.os == 'linux-latest' || matrix.os == 'macos-latest' | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.3 | ||
|
||
- name: Clippy check | ||
shell: bash | ||
env: | ||
|
@@ -83,6 +91,11 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout wireguard-go submodule | ||
run: | | ||
git config --global --add safe.directory '*' | ||
git submodule update --init --depth=1 wireguard-go-rs | ||
- name: Clippy check | ||
env: | ||
RUSTFLAGS: --deny warnings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,9 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout wireguard-go submodule | ||
run: git submodule update --init --depth=1 wireguard-go-rs | ||
|
||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
workflow_dispatch: | ||
env: | ||
# Pinning nightly just to avoid random breakage. It's fine to bump this at any time | ||
RUST_NIGHTLY_TOOLCHAIN: nightly-2024-02-06 | ||
RUST_NIGHTLY_TOOLCHAIN: nightly-2024-06-06 | ||
jobs: | ||
prepare-containers: | ||
runs-on: ubuntu-latest | ||
|
@@ -41,17 +41,18 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout binaries submodule | ||
- name: Checkout submodules | ||
run: | | ||
git config --global --add safe.directory '*' | ||
git submodule update --init --depth=1 dist-assets/binaries | ||
git submodule update --init --recursive --depth=1 wireguard-go-rs | ||
- name: Install nightly Rust toolchain | ||
run: rustup default $RUST_NIGHTLY_TOOLCHAIN | ||
|
||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-udeps | ||
tool: cargo-udeps@0.1.48 | ||
|
||
- name: Check for unused dependencies | ||
shell: bash | ||
|
@@ -72,27 +73,33 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout wireguard-go submodule | ||
run: | | ||
git config --global --add safe.directory '*' | ||
git submodule update --init --depth=1 wireguard-go-rs | ||
- name: Install nightly Rust toolchain | ||
run: | | ||
rustup default $RUST_NIGHTLY_TOOLCHAIN | ||
rustup target add aarch64-linux-android | ||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-udeps | ||
tool: cargo-udeps@0.1.48 | ||
|
||
- name: Check for unused dependencies | ||
run: cargo udeps --target aarch64-linux-android --package mullvad-jni | ||
|
||
cargo-udeps: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest] | ||
os: [windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
|
@@ -108,7 +115,13 @@ jobs: | |
|
||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-udeps | ||
tool: [email protected] | ||
|
||
- name: Install Go | ||
if: matrix.os == 'macos-latest' | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.21.3 | ||
|
||
- name: Check for unused dependencies | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout wireguard-go submodule | ||
run: git submodule update --init --depth=1 wireguard-go-rs | ||
|
||
- name: Install nightly Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.