Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Mar 7, 2023
1 parent fe07955 commit b0c612f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
toolchain: 1.67.0
target: ${{ matrix.target }}
override: true
- name: Install linker
Expand All @@ -60,7 +60,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
toolchain: 1.67.0
override: true
components: rustfmt, clippy
- name: Checkout
Expand Down
35 changes: 24 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
env:
REF: ${{ github.ref }}
shell: bash
run: echo ::set-output name=VERSION::${REF/refs\/tags\//}
run: echo "VERSION=${REF/refs\/tags\//}" >> $GITHUB_OUTPUT
build-upload:
name: Build & Upload
needs: [create-release, read-version]
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
toolchain: 1.67.0
target: ${{ matrix.target }}
override: true
- name: Install linker
Expand All @@ -76,27 +76,40 @@ jobs:
env:
BUILD_NAME: ${{ env.NAME }}-${{ needs.read-version.outputs.version }}-${{ matrix.target }}
shell: bash
run: echo ::set-output name=BUILD_NAME::$BUILD_NAME
run: echo "BUILD_NAME=$BUILD_NAME" >> $GITHUB_OUTPUT
- name: Ready artifacts
env:
BUILD_NAME: ${{ steps.vars.outputs.BUILD_NAME }}
TARGET: ${{ matrix.target }}
shell: bash
run: |
mkdir $BUILD_NAME
cp target/$TARGET/release/$NAME LICENSE $BUILD_NAME
mkdir upload
cp target/$TARGET/release/$NAME LICENSE upload
- name: Compress artifacts
uses: papeloto/action-zip@v1
uses: vimtor/action-zip@v1
with:
files: ${{ steps.vars.outputs.BUILD_NAME }}/
recursive: false
dest: ${{ steps.vars.outputs.BUILD_NAME }}.zip
files: upload/
recursive: true
dest: upload.zip
- name: Upload artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ./${{ steps.vars.outputs.BUILD_NAME }}.zip
asset_path: ./upload.zip
asset_name: ${{ steps.vars.outputs.BUILD_NAME }}.zip
asset_content_type: application/zip
- name: Calculate checksum
id: calculate
shell: bash
run: |
echo $(sha256sum upload.zip | cut -d ' ' -f 1) > sha256sum.txt
- name: Upload checksums
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ./sha256sum.txt
asset_name: ${{ steps.vars.outputs.BUILD_NAME }}_sha256sum.txt
asset_content_type: text/plain

0 comments on commit b0c612f

Please sign in to comment.