Skip to content

Commit

Permalink
Update crates and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Feb 15, 2024
1 parent 6c8a783 commit 59d6a94
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 260 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup target add wasm32-unknown-unknown
- uses: jetli/[email protected]
with:
version: 'v0.16.0'

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -32,7 +32,7 @@ jobs:
run: trunk build
working-directory: frontend

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: frontend-build-${{ github.sha }}
path: frontend/dist
Expand Down Expand Up @@ -82,15 +82,15 @@ jobs:
cross: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: frontend-build-${{ github.sha }}
path: frontend/dist

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup component add clippy

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -23,7 +23,7 @@ jobs:
key: frontend-${{ hashFiles('frontend/Cargo.toml') }}
restore-keys: frontend-

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup target add wasm32-unknown-unknown
- uses: jetli/[email protected]
with:
version: 'v0.16.0'

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -49,7 +49,7 @@ jobs:
run: trunk build
working-directory: frontend

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: frontend-build-${{ github.ref_name }}
path: frontend/dist
Expand Down Expand Up @@ -99,15 +99,15 @@ jobs:
cross: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: frontend-build-${{ github.ref_name }}
path: frontend/dist

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
if: ${{ matrix.platform != null }}
run: mkdir -p bin && cp backend/target/${{ matrix.target }}/release/mailcrab-backend bin/${{ matrix.platform }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ matrix.platform != null }}
with:
name: ${{ matrix.platform }}-build-${{ github.ref_name }}
Expand All @@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup docker buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -173,12 +173,12 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: amd64-build-${{ github.ref_name }}
path: bin

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: arm64-build-${{ github.ref_name }}
path: bin
Expand Down
Loading

0 comments on commit 59d6a94

Please sign in to comment.