-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow: fully checkout during CI build to get correct version
Signed-off-by: Gong Zhile <[email protected]>
- Loading branch information
1 parent
6729b19
commit c906a89
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ jobs: | |
shell: msys2 {0} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MSYS | ||
|
@@ -30,6 +32,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
|
@@ -40,10 +44,11 @@ jobs: | |
CC="musl-gcc -static" ./configure --prefix /usr | ||
make | ||
echo "ws63flash - flashing utility for Hisilicon WS63" > description-pak | ||
checkinstall --default --install=no --fstrans=yes --pkgname=ws63flash --pkgversion="$(build-aux/git-version-gen .)" --pkglicense=GPLv3 --arch=amd64 --pkgsource='https://codeberg.org/goodspeed/ws63flash' --maintainer='[email protected]' -D | ||
checkinstall --default --install=no --fstrans=yes --pkgname=ws63flash --pkgversion="$(cat .version)" --pkglicense=GPLv3 --arch=amd64 --pkgsource='https://codeberg.org/goodspeed/ws63flash' --maintainer='[email protected]' -D | ||
cp src/ws63flash ws63flash-static | ||
- uses: actions/[email protected] | ||
with: | ||
name: ws63flash-linux-musl-amd64 | ||
path: | | ||
src/ws63flash | ||
ws63flash-static | ||
*.deb |