Skip to content

Commit

Permalink
update for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 12, 2024
1 parent 18277fd commit 0f168b3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 2.9.2
xmake-version: 2.9.4
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'ubuntu'

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ubuntu_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest]
cross: [aarch64-linux-musl]
kind: [static, shared]

concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cross-Musl-${{ matrix.cross }}
Expand All @@ -41,7 +42,7 @@ jobs:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 2.9.2
xmake-version: 2.9.4
actions-cache-folder: '.xmake-cache'

- name: Installation musl
Expand All @@ -51,7 +52,7 @@ jobs:
- name: configure
run: |
xmake f -p cross -a aarch64 --sdk=`pwd`/${{ matrix.cross }}-cross -k shared -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
xmake f -p cross -a aarch64 --sdk=`pwd`/${{ matrix.cross }}-cross -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
- name: build
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
strategy:
matrix:
os: [windows-2019, windows-2022]
arch: [x64] #, arm64]
arch: [x64, arm64]
kind: [static, shared]

concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }}
Expand All @@ -32,10 +33,14 @@ jobs:
- name: configure
shell: cmd
run: |
xmake f -c -k shared -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
xmake f -c -a ${{ matrix.arch }} -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
- name: build
shell: cmd
run: |
xmake -b unit-test
- name: test
run: |
xmake r unit-test
3 changes: 1 addition & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ if not is_plat("windows") then
-- disable some compiler errors
add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing")
add_cxflags("-ftemplate-depth=1023", "-pthread")
add_cxxflags("-frtti") ---- gcc 只能用于编译 C++ 文件,否则保报错
add_shflags("-pthread")
add_ldflags("-pthread")
end
Expand Down Expand Up @@ -161,8 +162,6 @@ if has_config("http_client") or has_config("node") then
end
end



target("hku_utils")
set_kind("$(kind)")

Expand Down

0 comments on commit 0f168b3

Please sign in to comment.