diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e99ef6d..1e5e0a2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,8 +1,7 @@ name: Docker on: - push: - branches: [ main ] + workflow_dispatch: jobs: multi: @@ -29,7 +28,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 push: true tags: | trivernis/snekcloud-server:latest \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9267250..c369dd4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,10 +22,11 @@ jobs: path: | target/**/build target/**/deps - key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} + target/**/incremental + key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }} restore-keys: | + ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }} ${{ runner.os }}-build- - ${{ runner.os }}- - name: Build run: cargo build --verbose - name: Run tests