Skip to content

Commit

Permalink
Use pattern for uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Jun 5, 2024
1 parent f1dedd7 commit 278602f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,13 @@ jobs:
targets: ${{ matrix.target }}

- name: Cargo Fetch
run: cargo fetch
run: cargo fetch

- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Archive
run: |
mkdir -p artifacts
cp target/${{ matrix.target }}/release/pet* artifacts/pet-${{ matrix.target }}.tar.gz
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: pet-${{ matrix.target }}
path: artifacts/pet-${{ matrix.target }}.tar.gz

path: artifacts/pet*
7 changes: 1 addition & 6 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@ jobs:
- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Archive
run: |
mkdir -p artifacts
cp target/${{ matrix.target }}/release/pet* artifacts/pet-${{ matrix.target }}.tar.gz
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: pet-${{ matrix.target }}
path: artifacts/pet-${{ matrix.target }}.tar.gz
path: artifacts/pet*
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}

0 comments on commit 278602f

Please sign in to comment.