diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fd4d05d..9cbf67a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,7 +29,7 @@ jobs: RUSTFLAGS: --deny warnings steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Rust Toolchain Components uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 111998e..e91ec12 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -54,28 +54,13 @@ jobs: os: ubuntu-latest use-cross: true cargo-flags: "" - - target: mips-unknown-linux-musl - os: ubuntu-latest - use-cross: true - cargo-flags: "--no-default-features" - - target: mipsel-unknown-linux-musl - os: ubuntu-latest - use-cross: true - cargo-flags: "--no-default-features" - - target: mips64-unknown-linux-gnuabi64 - os: ubuntu-latest - use-cross: true - cargo-flags: "--no-default-features" - - target: mips64el-unknown-linux-gnuabi64 - os: ubuntu-latest - use-cross: true - cargo-flags: "--no-default-features" + runs-on: ${{matrix.os}} env: BUILD_CMD: cargo steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check Tag id: check-tag @@ -94,20 +79,18 @@ jobs: uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} - # Since rust 1.72, mips platforms are tier 3 - toolchain: 1.71 - name: Install cross if: matrix.use-cross uses: taiki-e/install-action@v2 with: tool: cross - + - name: Overwrite build command env variable if: matrix.use-cross shell: bash run: echo "BUILD_CMD=cross" >> $GITHUB_ENV - + - name: Show Version Information (Rust, cargo, GCC) shell: bash run: | @@ -155,14 +138,12 @@ jobs: fi - name: Publish Archive - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: draft: false files: ${{ steps.package.outputs.archive }} prerelease: ${{ steps.check-tag.outputs.rc == 'true' }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} docker: name: Publish to Docker Hub @@ -171,16 +152,16 @@ jobs: needs: release steps: - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: - username: ${{ github.repository_owner }} + username: ${{ github.repository_owner }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: file: Dockerfile-release build-args: | @@ -200,7 +181,7 @@ jobs: runs-on: ubuntu-latest needs: release steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable