diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7bd0385..57a56b7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,7 +27,7 @@ jobs: version: [ 'macos-latest', 'ubuntu-latest', 'windows-latest' ] runs-on: ${{ matrix.version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup | rust uses: actions-rs/toolchain@v1 with: @@ -50,7 +50,7 @@ jobs: - clippy --all-targets --all-features -- -D warnings runs-on: ${{ matrix.version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup | rust uses: actions-rs/toolchain@v1 with: @@ -69,7 +69,7 @@ jobs: outputs: version: ${{ steps.tag_name.outputs.current_version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup | rust uses: actions-rs/toolchain@v1 with: @@ -112,6 +112,10 @@ jobs: os: macos-latest cross: false binName: luminous-ttv + - target: aarch64-apple-darwin + os: macos-latest + cross: false + binName: luminous-ttv - target: i686-pc-windows-msvc os: windows-latest cross: false @@ -121,7 +125,7 @@ jobs: cross: false binName: luminous-ttv.exe steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Rust uses: actions-rs/toolchain@v1 with: @@ -154,7 +158,7 @@ jobs: files: README.md LICENSE-GPL.txt LICENSE-MIT.txt ${{ matrix.binName }} dest: luminous-ttv-${{ needs.release.outputs.version }}-${{ matrix.target }}.zip - name: Upload Archive - uses: ncipollo/release-action@v1.8.8 + uses: ncipollo/release-action@v1.10.0 with: token: ${{ secrets.GITHUB_TOKEN }} allowUpdates: true diff --git a/.github/workflows/wf.yaml b/.github/workflows/wf.yaml index c1d528d..03ebeca 100644 --- a/.github/workflows/wf.yaml +++ b/.github/workflows/wf.yaml @@ -13,28 +13,34 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal default: true toolchain: stable + - uses: Swatinem/rust-cache@v1 - uses: actions-rs/cargo@v1 with: command: check + args: --no-default-features + - uses: actions-rs/cargo@v1 + with: + command: check + args: --all-features fmt: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal default: true toolchain: stable components: rustfmt - - run: rustup component add rustfmt + - uses: Swatinem/rust-cache@v1 - uses: actions-rs/cargo@v1 with: command: fmt @@ -44,14 +50,19 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal default: true toolchain: stable components: clippy + - uses: Swatinem/rust-cache@v1 + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: --no-default-features -- -D warnings - uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings + args: --all-features -- -D warnings