From 97825b8ad509d47e81e6bec7b81c75d97f000172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Bezerra?= Date: Thu, 7 Oct 2021 00:48:52 -0300 Subject: [PATCH 1/2] CI: don't upload unused artifacts Just upload artifacts that are supported by the installer --- .github/workflows/build.yml | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79a8f29..41d1088 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,11 +36,11 @@ jobs: - name: Strip binary run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch - - name: Upload binary - uses: actions/upload-artifact@v2 - with: - name: 'ouch-aarch64-linux-gnu' - path: target/aarch64-unknown-linux-gnu/release/ouch + # - name: Upload binary + # uses: actions/upload-artifact@v2 + # with: + # name: 'ouch-aarch64-linux-gnu' + # path: target/aarch64-unknown-linux-gnu/release/ouch armv7-glibc: @@ -75,11 +75,11 @@ jobs: - name: Strip binary run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch - - name: Upload binary - uses: actions/upload-artifact@v2 - with: - name: 'ouch-armv7-linux-gnueabihf' - path: target/armv7-unknown-linux-gnueabihf/release/ouch + # - name: Upload binary + # uses: actions/upload-artifact@v2 + # with: + # name: 'ouch-armv7-linux-gnueabihf' + # path: target/armv7-unknown-linux-gnueabihf/release/ouch x86_64_musl: @@ -159,11 +159,11 @@ jobs: - name: Strip binary run: strip target/release/ouch - - name: Upload binary - uses: actions/upload-artifact@v2 - with: - name: 'ouch-x86_64-linux-gnu' - path: target/release/ouch + # - name: Upload binary + # uses: actions/upload-artifact@v2 + # with: + # name: 'ouch-x86_64-linux-gnu' + # path: target/release/ouch x86_64_macos: @@ -270,8 +270,8 @@ jobs: command: test args: --release --target x86_64-pc-windows-gnu - - name: Upload binary - uses: actions/upload-artifact@v2 - with: - name: 'ouch-x86_64-pc-windows-gnu' - path: target\x86_64-pc-windows-gnu\release\ouch.exe + # - name: Upload binary + # uses: actions/upload-artifact@v2 + # with: + # name: 'ouch-x86_64-pc-windows-gnu' + # path: target\x86_64-pc-windows-gnu\release\ouch.exe From 4e382491c584cf9be8dcaa60ca809e78e74a092b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Bezerra?= Date: Thu, 7 Oct 2021 00:54:38 -0300 Subject: [PATCH 2/2] CI: remove --release from unused artifacts This will speed up compilation in our CI. --- .github/workflows/build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41d1088..aa88a1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,14 +24,14 @@ jobs: with: use-cross: true command: build - args: --release --target=aarch64-unknown-linux-gnu + args: --target=aarch64-unknown-linux-gnu - name: Run cargo test uses: actions-rs/cargo@v1 with: use-cross: true command: test - args: --release --target=aarch64-unknown-linux-gnu + args: --target=aarch64-unknown-linux-gnu - name: Strip binary run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch @@ -63,7 +63,7 @@ jobs: with: use-cross: true command: build - args: --release --target=armv7-unknown-linux-gnueabihf + args: --target=armv7-unknown-linux-gnueabihf - name: Run cargo test uses: actions-rs/cargo@v1 @@ -148,13 +148,11 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --release - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test - args: --release - name: Strip binary run: strip target/release/ouch @@ -262,13 +260,13 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --release --target x86_64-pc-windows-gnu + args: --target x86_64-pc-windows-gnu - name: Run cargo test uses: actions-rs/cargo@v1 with: command: test - args: --release --target x86_64-pc-windows-gnu + args: --target x86_64-pc-windows-gnu # - name: Upload binary # uses: actions/upload-artifact@v2