Skip to content

Commit

Permalink
Update Build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux authored Oct 31, 2023
1 parent d4092ea commit 9d5f8b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ jobs:
- name: Get build timestamp
id: id_date
shell: bash
run: echo "::set-output name=timestamp::$(date +%Y-%m-%d-%H-%M-%S)"
run: echo "timestamp=$(date +%Y-%m-%d-%H-%M-%S)" >> $GITHUB_STATE

- name: Get app version
id: id_version
shell: bash
run: |
app_major_minor_patch=`grep -oP '(?<=VERSION = )[0-9.]+' Makefile`
echo "::set-output name=app_version::v$app_major_minor_patch-${{steps.id_date.outputs.timestamp}}"
echo "app_version=v$app_major_minor_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT
- name: Build app
shell: bash
run: |
make
- name: Upload artifact
env:
APP_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wch-ch56x-isp-Ubuntu-${{env.APP_VERSION}}
path: ./
Expand All @@ -56,21 +56,21 @@ jobs:

- name: Get build timestamp
id: id_date
run: echo "::set-output name=timestamp::$(date +%Y-%m-%d-%H-%M-%S)"
run: echo "timestamp=$(date +%Y-%m-%d-%H-%M-%S)" >> $GITHUB_STATE

- name: Get app version
id: id_version
run: |
app_major_minor_patch=`grep -oP '(?<=VERSION = )[0-9.]+' Makefile`
echo "::set-output name=app_version::v$app_major_minor_patch-${{steps.id_date.outputs.timestamp}}"
echo "app_version=v$app_major_minor_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT
- name: Build app
run: |
mingw32-make
cp /mingw64/bin/libusb-1.0.dll ./
- name: Upload artifact
env:
APP_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wch-ch56x-isp-Windows-${{env.APP_VERSION}}
path: ./

0 comments on commit 9d5f8b7

Please sign in to comment.