Skip to content

Commit

Permalink
Remove actions-rs usages
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Oct 17, 2023
1 parent b7bfa1e commit 24e7a63
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 50 deletions.
49 changes: 16 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,17 @@ jobs:
uses: actions/checkout@v2
# Dependencies
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
# Test
- name: Cargo Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all-features
run: cargo test --verbose --all-features
# Test (no_std)
- name: Cargo Build (vulkanalia-sys/no_std)
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path vulkanalia-sys/Cargo.toml --no-default-features
run: cargo build --manifest-path vulkanalia-sys/Cargo.toml --no-default-features
- name: Cargo Build (vulkanalia/no_std)
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path vulkanalia/Cargo.toml --no-default-features
run: cargo build --manifest-path vulkanalia/Cargo.toml --no-default-features
# Debug
- name: Debug
uses: mxschmitt/action-tmate@v3
Expand All @@ -70,16 +60,13 @@ jobs:
uses: actions/checkout@v2
# Dependencies
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
components: rustfmt
# Format
- name: Cargo Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --verbose -- --check
run: cargo fmt --verbose -- --check

clippy-vulkanalia:
name: Clippy - Vulkanalia
Expand All @@ -93,15 +80,13 @@ jobs:
uses: actions/checkout@v2
# Dependencies
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
components: clippy
# Clippy
- name: Cargo Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
run: cargo clippy

check-generator:
name: Check - Generator
Expand Down Expand Up @@ -141,26 +126,24 @@ jobs:
with:
java-version: 14
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Cache bindgen
components: rustfmt
- name: Cache Bindgen
id: cache-bindgen
uses: actions/cache@v2
with:
path: ~/.cargo/bin/bindgen
key: ${{ runner.os }}-${{ env.RUST_VERSION }}-${{ env.BINDGEN_VERSION }}
- name: Install bindgen
uses: actions-rs/cargo@v1
- name: Install Bindgen
if: steps.cache-bindgen.outputs.cache-hit != 'true'
with:
command: install
args: bindgen-cli --version ${{ env.BINDGEN_VERSION }}
run: cargo install bindgen-cli --version ${{ env.BINDGEN_VERSION }}
# Check
- name: Check Bindings
working-directory: ./generator
run: ./gradlew run --args="--directory=.. check"
# Debug
- name: Debug
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
if: ${{ (failure() && inputs.error_debug) || inputs.force_debug }}
15 changes: 5 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
env:
RUST_LOG: info
RUST_VERSION: 1.64.0
RUST_VERSION: 1.65.0
MDBOOK_VERSION: 0.4.21
steps:
# Checkout
Expand All @@ -34,21 +34,19 @@ jobs:
with:
java-version: 14
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: rustfmt
- name: Cache mdbook
id: cache-mdbook
uses: actions/cache@v2
with:
path: ~/.cargo/bin/mdbook
key: ${{ runner.os }}-${{ env.RUST_VERSION }}-${{ env.MDBOOK_VERSION }}
- name: Install mdbook
uses: actions-rs/cargo@v1
if: steps.cache-mdbook.outputs.cache-hit != 'true'
with:
command: install
args: mdbook --version ${{ env.MDBOOK_VERSION }} --no-default-features
run: cargo install mdbook --version ${{ env.MDBOOK_VERSION }} --no-default-features
# Publish
- name: Build Index
working-directory: ./generator
Expand All @@ -60,11 +58,8 @@ jobs:
path: ~/.cargo/bin/vk-preprocessor
key: ${{ hashFiles('index.txt', 'tutorial/book/preprocessor/**') }}
- name: Build Preprocessor
uses: actions-rs/cargo@v1
if: steps.cache-preprocessor.outputs.cache-hit != 'true'
with:
command: install
args: --path ./tutorial/book/preprocessor
run: cargo install --path ./tutorial/book/preprocessor
- name: Build Tutorial
working-directory: ./tutorial/book
run: mdbook build
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,19 @@ jobs:
with:
java-version: 14
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Cache bindgen
components: rustfmt
- name: Cache Bindgen
id: cache-bindgen
uses: actions/cache@v2
with:
path: ~/.cargo/bin/bindgen
key: ${{ runner.os }}-${{ env.RUST_VERSION }}-${{ env.BINDGEN_VERSION }}
- name: Install bindgen
uses: actions-rs/cargo@v1
- name: Install Bindgen
if: steps.cache-bindgen.outputs.cache-hit != 'true'
with:
command: install
args: bindgen-cli --version ${{ env.BINDGEN_VERSION }}
run: cargo install bindgen-cli --version ${{ env.BINDGEN_VERSION }}
# Update
- name: Update Bindings
working-directory: ./generator
Expand Down

0 comments on commit 24e7a63

Please sign in to comment.