Update Github Actions Versions / Repos ()

* Update some action versions

* Use ructions instead of actions-rs

* Change ructions version

* dtolnay rust-toolchain testing

* dtolnay rust-toolchain testing

* More testing

* More testing

* Working Actions Update
This commit is contained in:
GradualSyrup
2023-08-04 15:07:15 -05:00
committed by GitHub
parent dcb1e831dc
commit b8b2446522

@ -12,43 +12,30 @@ jobs:
name: Code Formatting name: Code Formatting
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install minimal nightly rust - name: Install Rust Toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@nightly
with: with:
profile: minimal components: rustfmt
toolchain: nightly
components: rustfmt, clippy
default: true
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
- name: rustfmt - name: Check Formatting
uses: actions-rs/cargo@v1 run: cargo fmt --all -- --check
with:
command: fmt
args: --all -- --check
checker: checker:
name: Check, Clippy, Tests name: Check, Clippy, Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install minimal nightly rust - name: Install Rust Toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@nightly
with: with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy components: rustfmt, clippy
default: true
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
name: Rust Cache name: Rust Cache
with: with:
prefix-key: "checker-2" prefix-key: "checker-2"
- name: Clippy - name: Clippy
uses: actions-rs/cargo@v1 run: cargo clippy --all-targets --all-features --target=x86_64-unknown-linux-gnu -- -D warnings
continue-on-error: false
with:
command: clippy
args: --all-targets --all-features --target=x86_64-unknown-linux-gnu -- -D warnings
- name: TUI Test - name: TUI Test
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.3
with: with:
@ -60,7 +47,7 @@ jobs:
container: container:
image: jugeeya/cargo-skyline:3.2.0-no-dkp image: jugeeya/cargo-skyline:3.2.0-no-dkp
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
name: Rust Cache name: Rust Cache
with: with:
@ -71,7 +58,7 @@ jobs:
env: env:
HOME: /root HOME: /root
- name: Upload plugin artifact - name: Upload plugin artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: plugin name: plugin
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
@ -82,7 +69,7 @@ jobs:
container: container:
image: jugeeya/cargo-skyline:3.2.0-no-dkp image: jugeeya/cargo-skyline:3.2.0-no-dkp
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
name: Rust Cache name: Rust Cache
with: with:
@ -93,7 +80,7 @@ jobs:
env: env:
HOME: /root HOME: /root
- name: Upload plugin (outside training mode) artifact - name: Upload plugin (outside training mode) artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: plugin_outside_training_mode name: plugin_outside_training_mode
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
@ -105,7 +92,7 @@ jobs:
- plugin - plugin
steps: steps:
- name: Download all artifacts - name: Download all artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
- name: Prepare zip - name: Prepare zip
id: prepare_zip id: prepare_zip
env: env:
@ -221,7 +208,7 @@ jobs:
files: > files: >
training_modpack_beta.zip training_modpack_beta.zip
- name: Upload zip as artifact - name: Upload zip as artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v3
with: with:
name: full_build name: full_build
path: training_modpack_beta.zip path: training_modpack_beta.zip