Merge pull request #75 from ouch-org/dont-upload-artifacts-unused

CI: don't upload unused artifacts
This commit is contained in:
Vinícius Miguel 2021-10-07 01:12:57 -03:00 committed by GitHub
commit 22f57e634f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,23 +24,23 @@ jobs:
with: with:
use-cross: true use-cross: true
command: build command: build
args: --release --target=aarch64-unknown-linux-gnu args: --target=aarch64-unknown-linux-gnu
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
use-cross: true use-cross: true
command: test command: test
args: --release --target=aarch64-unknown-linux-gnu args: --target=aarch64-unknown-linux-gnu
- name: Strip binary - name: Strip binary
run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch run: aarch64-linux-gnu-strip target/aarch64-unknown-linux-gnu/release/ouch
- name: Upload binary # - name: Upload binary
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: 'ouch-aarch64-linux-gnu' # name: 'ouch-aarch64-linux-gnu'
path: target/aarch64-unknown-linux-gnu/release/ouch # path: target/aarch64-unknown-linux-gnu/release/ouch
armv7-glibc: armv7-glibc:
@ -63,7 +63,7 @@ jobs:
with: with:
use-cross: true use-cross: true
command: build command: build
args: --release --target=armv7-unknown-linux-gnueabihf args: --target=armv7-unknown-linux-gnueabihf
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
@ -75,11 +75,11 @@ jobs:
- name: Strip binary - name: Strip binary
run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch run: arm-none-eabi-strip target/armv7-unknown-linux-gnueabihf/release/ouch
- name: Upload binary # - name: Upload binary
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: 'ouch-armv7-linux-gnueabihf' # name: 'ouch-armv7-linux-gnueabihf'
path: target/armv7-unknown-linux-gnueabihf/release/ouch # path: target/armv7-unknown-linux-gnueabihf/release/ouch
x86_64_musl: x86_64_musl:
@ -148,22 +148,20 @@ jobs:
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --release
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --release
- name: Strip binary - name: Strip binary
run: strip target/release/ouch run: strip target/release/ouch
- name: Upload binary # - name: Upload binary
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: 'ouch-x86_64-linux-gnu' # name: 'ouch-x86_64-linux-gnu'
path: target/release/ouch # path: target/release/ouch
x86_64_macos: x86_64_macos:
@ -262,16 +260,16 @@ jobs:
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --release --target x86_64-pc-windows-gnu args: --target x86_64-pc-windows-gnu
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --release --target x86_64-pc-windows-gnu args: --target x86_64-pc-windows-gnu
- name: Upload binary # - name: Upload binary
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: 'ouch-x86_64-pc-windows-gnu' # name: 'ouch-x86_64-pc-windows-gnu'
path: target\x86_64-pc-windows-gnu\release\ouch.exe # path: target\x86_64-pc-windows-gnu\release\ouch.exe