Skip to content

Commit

Permalink
CI Updates (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
puffyCid authored Dec 5, 2024
1 parent affef80 commit b97bd7c
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 39 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
run: npm install -D daisyui@latest
- name: Install TailwindCSS Typography
run: npm install -D @tailwindcss/typography
- name: Add WASM Support
run: rustup target add wasm32-unknown-unknown

- name: Tauri build dependencies on Linux
if: matrix.info.os == 'ubuntu-latest'
Expand Down Expand Up @@ -82,7 +80,7 @@ jobs:

- name: Setup Rust for root (Linux)
if: matrix.info.os == 'ubuntu-latest'
run: sudo env "PATH=$PATH" rustup default stable && sudo env "PATH=$PATH" rustup target add wasm32-unknown-unknown
run: sudo env "PATH=$PATH" rustup default stable
- name: Generate code coverage (Linux)
if: matrix.info.os == 'ubuntu-latest'
run: sudo env "PATH=$PATH" just _coverage
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/cross-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@ jobs:
- name: Setup Stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: clippy, rustfmt
- name: Setup Cross
run: cargo install cross --git https://github.com/cross-rs/cross

- uses: actions/checkout@v4
- uses: taiki-e/install-action@just

# Compile WASM before compiling binary
- name: Compile WASM
run: just _wasm

- name: Build Artemis
shell: bash
run: just --shell bash --shell-arg -uc _ci_release_cross ${{ matrix.info.target }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,13 @@ jobs:
- name: Setup Stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: clippy, rustfmt
- name: Setup Cross
run: cargo install cross --git https://github.com/cross-rs/cross

- uses: actions/checkout@v4
- uses: taiki-e/install-action@just

# Compile WASM before compiling binary
- name: Compile WASM
run: just _wasm

- name: Build Artemis
shell: bash
run: just --shell bash --shell-arg -uc _ci_release_cross ${{ matrix.info.target }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
run: npm install -D daisyui@latest
- name: Install TailwindCSS Typography
run: npm install -D @tailwindcss/typography
- name: Add WASM Support
run: rustup target add wasm32-unknown-unknown

- name: Enable Rust cache
uses: Swatinem/[email protected]
Expand Down Expand Up @@ -84,7 +82,7 @@ jobs:

- name: Setup Rust for root (Linux)
if: matrix.info.os == 'ubuntu-latest'
run: sudo env "PATH=$PATH" rustup default stable && sudo env "PATH=$PATH" rustup target add wasm32-unknown-unknown
run: sudo env "PATH=$PATH" rustup default stable

- name: Build tests (Linux)
if: matrix.info.os == 'ubuntu-latest'
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,14 @@ jobs:
- name: Setup Stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown, ${{ matrix.info.target }}
targets: ${{ matrix.info.target }}
components: clippy, rustfmt
- name: Setup Auditable
run: cargo install cargo-auditable

- uses: actions/checkout@v4
- uses: taiki-e/install-action@just

# Compile WASM before compiling binary
- if: matrix.info.os == 'windows-latest'
name: Compile WASM
run: just --shell pwsh.exe --shell-arg -c _wasm
- if: matrix.info.os != 'windows-latest'
name: Compile WASM
run: just _wasm

- name: Tauri build dependencies on Linux
if: matrix.info.os == 'ubuntu-latest'
run: sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
run: npm install -D daisyui@latest
- name: Install TailwindCSS Typography
run: npm install -D @tailwindcss/typography
- name: Add WASM Support
run: rustup target add wasm32-unknown-unknown

- name: Tauri build dependencies on Linux
if: matrix.info.os == 'ubuntu-latest'
Expand Down Expand Up @@ -89,7 +87,7 @@ jobs:

- name: Setup Rust for root (Linux)
if: matrix.info.os == 'ubuntu-latest'
run: sudo env "PATH=$PATH" rustup default stable && sudo env "PATH=$PATH" rustup target add wasm32-unknown-unknown
run: sudo env "PATH=$PATH" rustup default stable

- name: Build tests (Linux)
if: matrix.info.os == 'ubuntu-latest'
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,14 @@ jobs:
- name: Setup Stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown, ${{ matrix.info.target }}
targets: ${{ matrix.info.target }}
components: clippy, rustfmt
- name: Setup Auditable
run: cargo install cargo-auditable

- uses: actions/checkout@v4
- uses: taiki-e/install-action@just

# Compile WASM before compiling binary
- if: matrix.info.os == 'windows-latest'
name: Compile WASM
run: just --shell pwsh.exe --shell-arg -c _wasm
- if: matrix.info.os != 'windows-latest'
name: Compile WASM
run: just _wasm

- name: Tauri build dependencies on Linux
if: matrix.info.os == 'ubuntu-latest'
run: sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
Expand Down
2 changes: 0 additions & 2 deletions .setup/rust.just
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"

echo "Adding WASM target to Rust toolchain"
rustup target add wasm32-unknown-unknown

@_cargo-plugins:
echo "Installing Cargo plugins and binaries: deny, audit, auditable, nextest, update, and cross"
Expand Down

0 comments on commit b97bd7c

Please sign in to comment.