Skip to content

Commit

Permalink
Workflow: Add CI build for amd64 linux static
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 b7a15e6 commit 681e3e1
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 29 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CIBuild
on: [push, pull_request]

jobs:
exe-build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
install: git autoconf automake groff gcc make zip
- name: CI-Build
run: |
autoreconf -fi
CC="gcc -static" ./configure
make
mkdir ws63flash
cp src/ws63flash ws63flash
cp /usr/bin/msys-2.0.dll ws63flash
- uses: actions/[email protected]
with:
name: ws63flash-win32-msys
path: ws63flash
deb-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git autoconf automake gcc musl musl-tools make checkinstall
- name: CI-Build
run: |
autoreconf -fi
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
- uses: actions/[email protected]
with:
name: ws63flash-linux-musl-amd64
path: src/ws63flash
- uses: actions/[email protected]
with:
name: ws63flash-linux-musl-amd64-deb
path: *.deb
29 changes: 0 additions & 29 deletions .github/workflows/msys2.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
description-pak
doc-pak
*.deb
*.rpm
*.tgz

build/
.cache/
compile_commands.json
Expand Down

0 comments on commit 681e3e1

Please sign in to comment.