Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yahya committed Oct 19, 2023
1 parent ee6b393 commit 466f661
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build

on:
push:
branches: [main]
branches: [ main ]

jobs:
build:
Expand Down Expand Up @@ -51,18 +51,18 @@ jobs:
target: ${{ matrix.target }}
override: true

- name: Clean Target Directory
run: cargo clean

- name: Build using cargo (ignore if it fails)
continue-on-error: true
run: cargo build --release --target ${{ matrix.target }}
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}

- name: List build artifacts
run: ls -R target/
- name: List contents of target directory
run: find target -type f

- name: Upload artifact (if build passed)
uses: actions/upload-artifact@v2
with:
name: gh-issue-creator-${{ matrix.target }}
path: target/${{ matrix.target }}/release/gh-issue-creator
path: target/${{ matrix.target }}/release/gh-issue-creator*

0 comments on commit 466f661

Please sign in to comment.