From e8a5a2465d408340026d465a06c4c61d11aa2e87 Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 12:25:09 +0800 Subject: [PATCH 1/7] fix rust toolchain --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7dfe4d8..48959ea 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,7 +24,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: - toolchain: nightly-2023-11-13 + toolchain: stable # - name: Cache cargo # uses: Swatinem/rust-cache@v2 From 64884793ac404a986be30a0afb60edf8fbf22c0a Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 12:46:44 +0800 Subject: [PATCH 2/7] profile: minimal --- .github/workflows/go.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 48959ea..fe5c21a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,7 +24,8 @@ jobs: - uses: actions-rs/toolchain@v1 with: - toolchain: stable + # toolchain: stable + profile: minimal # - name: Cache cargo # uses: Swatinem/rust-cache@v2 From a536d1b36bf186debaffd95577f16ce2907f0dc9 Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 12:49:40 +0800 Subject: [PATCH 3/7] fix --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fe5c21a..e065cb2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,7 +24,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: - # toolchain: stable + toolchain: stable profile: minimal # - name: Cache cargo From a77921023384fa8f0dc80da2b3ffc073b534b09a Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 12:58:55 +0800 Subject: [PATCH 4/7] use setup-rust --- .github/workflows/go.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e065cb2..5d30d26 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,10 +22,9 @@ jobs: with: go-version: '1.21' - - uses: actions-rs/toolchain@v1 + - uses: actions/setup-rust@v2 with: - toolchain: stable - profile: minimal + rust-version: 1.74.0 # - name: Cache cargo # uses: Swatinem/rust-cache@v2 From e3c40e5c9cfbddd964c410b3048cf53cc1501996 Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 13:05:14 +0800 Subject: [PATCH 5/7] use juno ci --- .github/workflows/{go.yml => ci.yml} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename .github/workflows/{go.yml => ci.yml} (88%) diff --git a/.github/workflows/go.yml b/.github/workflows/ci.yml similarity index 88% rename from .github/workflows/go.yml rename to .github/workflows/ci.yml index 5d30d26..2294c4c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,11 @@ jobs: with: go-version: '1.21' - - uses: actions/setup-rust@v2 + - uses: actions-rs/toolchain@v1 with: - rust-version: 1.74.0 + toolchain: stable + profile: minimal + override: true # - name: Cache cargo # uses: Swatinem/rust-cache@v2 From 9900329c87889ca787f5de2acac33ca2ac92e283 Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 13:13:03 +0800 Subject: [PATCH 6/7] use juno ci --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2294c4c..c0c1ba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,11 +22,7 @@ jobs: with: go-version: '1.21' - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + - uses: dtolnay/rust-toolchain@stable # - name: Cache cargo # uses: Swatinem/rust-cache@v2 From a95bc01fb030a2b70f6cdb2bede7f6b5c34fa6ff Mon Sep 17 00:00:00 2001 From: Lawliet-Chan <1576710154@qq.com> Date: Sat, 3 Feb 2024 13:31:51 +0800 Subject: [PATCH 7/7] order --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0c1ba1..9e1d05d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,12 +17,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.21' - - uses: dtolnay/rust-toolchain@stable # - name: Cache cargo # uses: Swatinem/rust-cache@v2 @@ -34,6 +29,14 @@ jobs: git submodule init git submodule update --recursive --checkout + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + - name: Build run: make build