diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6826877..855c4ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: Release on: push: release: - types: + types: - published concurrency: @@ -19,20 +19,20 @@ jobs: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} - name: setup sccache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 with: - version: "v0.4.0" + version: "v0.7.7" - uses: dtolnay/rust-toolchain@master with: toolchain: stable - name: Install zig uses: korandoru/setup-zig@v1 with: - zig-version: 0.10.1 + zig-version: 0.11.0 - name: Install Rust targets shell: bash run: | @@ -54,7 +54,7 @@ jobs: mv target/universal2-apple-darwin/release/rewatch ./rewatch-macos mv target/x86_64-pc-windows-gnu/release/rewatch.exe ./rewatch-windows.exe - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: always-auth: true registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6cc9b74..67e02fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,13 +16,11 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.ref }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: build - args: --release + - name: Build + run: cargo build --release - name: Run unit test run: cargo test - name: Install Yarn Dependencies