From 278602fcf925512cf481a445f95a278f5a7ba5d0 Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Tue, 4 Jun 2024 17:00:36 -0700 Subject: [PATCH] Use pattern for uploading --- .github/workflows/build.yml | 10 ++-------- .github/workflows/pr-check.yml | 7 +------ .vscode/settings.json | 4 ++++ 3 files changed, 7 insertions(+), 14 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f94cd54b..59f4463d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 - \ No newline at end of file + path: artifacts/pet* diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 17e8e3cf..5b511aa6 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -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 \ No newline at end of file + path: artifacts/pet* diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..9bf4d12b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true +}