Skip to content

Commit

Permalink
Workflow: fully checkout during CI build to get correct version
Browse files Browse the repository at this point in the history
Signed-off-by: Gong Zhile <[email protected]>
  • Loading branch information
goodspeed34 committed Dec 13, 2024
1 parent 6729b19 commit c906a89
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit c906a89

Please sign in to comment.