-
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: Add CI build for amd64 linux static
Signed-off-by: Gong Zhile <[email protected]>
- Loading branch information
1 parent
b7a15e6
commit 681e3e1
Showing
3 changed files
with
57 additions
and
29 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 |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
description-pak | ||
doc-pak | ||
*.deb | ||
*.rpm | ||
*.tgz | ||
|
||
build/ | ||
.cache/ | ||
compile_commands.json | ||
|