Skip to content

Commit

Permalink
fix ci, attempt 2 (#25)
Browse files Browse the repository at this point in the history
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
  • Loading branch information
Fraccaman authored May 17, 2024
1 parent e7b28dc commit 46f3857
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
- uses: rui314/setup-mold@v1
- uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
cache-workspaces: true
- run: just clippy

format:
Expand All @@ -33,8 +32,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
- uses: rui314/setup-mold@v1
- uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,7 +42,6 @@ jobs:
toolchain: nightly
components: rustfmt
cache: true
cache-workspaces: true
- run: just fmt

build:
Expand All @@ -52,15 +50,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
- uses: rui314/setup-mold@v1
- uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
cache-workspaces: true
- run: just build

dependencies:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
merge_group:
pull_request:


env:
GIT_LFS_SKIP_SMUDGE: 1
REGISTRY_URL: ghcr.io

permissions:
contents: read
pages: write
id-token: write

jobs:
build-docker:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
attestations: write

if: ${{ github.event_name == 'merge_group' }}

strategy:
fail-fast: true
matrix:
Expand Down

0 comments on commit 46f3857

Please sign in to comment.