Browse Source

Switch from actions-rs/cargo to plain run

Josh Stone 2 years ago
parent
commit
42b365324a
3 changed files with 8 additions and 29 deletions
  1. 5 19
      .github/workflows/ci.yaml
  2. 1 3
      .github/workflows/master.yaml
  3. 2 7
      .github/workflows/pr.yaml

+ 5 - 19
.github/workflows/ci.yaml

@@ -21,9 +21,7 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Build
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
+        run: cargo build
       - name: Test
         run: ./ci/test_full.sh
 
@@ -43,10 +41,7 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Test
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --target i586-unknown-linux-gnu --all-features
+        run: cargo test --target i586-unknown-linux-gnu --all-features
 
   # try a target that doesn't have std at all
   no_std:
@@ -60,15 +55,9 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Build
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
-          args: --target thumbv6m-none-eabi --no-default-features --features i128
+        run: cargo build --target thumbv6m-none-eabi --no-default-features --features i128
       - name: Build (libm)
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
-          args: --target thumbv6m-none-eabi --no-default-features --features libm
+        run: cargo build --target thumbv6m-none-eabi --no-default-features --features libm
 
   fmt:
     name: Format
@@ -81,7 +70,4 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Check formatting
-        uses: actions-rs/cargo@v1
-        with:
-          command: fmt
-          args: --all --check
+        run: cargo fmt --all --check

+ 1 - 3
.github/workflows/master.yaml

@@ -22,8 +22,6 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Build
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
+        run: cargo build
       - name: Test
         run: ./ci/test_full.sh

+ 2 - 7
.github/workflows/pr.yaml

@@ -18,9 +18,7 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Build
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
+        run: cargo build
       - name: Test
         run: ./ci/test_full.sh
 
@@ -35,7 +33,4 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v3
       - name: Check formatting
-        uses: actions-rs/cargo@v1
-        with:
-          command: fmt
-          args: --all --check
+        run: cargo fmt --all --check