📝 adjust CI

This commit is contained in:
ValKmjolnir 2025-01-11 21:18:38 +08:00
parent 247172a9f2
commit c6840da201
3 changed files with 19 additions and 19 deletions

View File

@ -17,10 +17,8 @@ jobs:
git push -f origin next_macOS git push -f origin next_macOS
- name: Build - name: Build
run: | run: |
make -j4 mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
cd module make -j6
make all -j4
cd ..
- name: Test - name: Test
run: make test run: make test
- name: Package - name: Package
@ -33,7 +31,7 @@ jobs:
prerelease: true prerelease: true
draft: false draft: false
files: | files: |
nasal-Darwin.tar nasal-macOS-aarch64.tar
linux-x86_64-build: linux-x86_64-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -46,10 +44,8 @@ jobs:
git push -f origin next_linux_x86_64 git push -f origin next_linux_x86_64
- name: Build - name: Build
run: | run: |
make -j4 mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
cd module make -j6
make all -j4
cd ..
- name: Test - name: Test
run: make test run: make test
- name: Package - name: Package
@ -62,4 +58,4 @@ jobs:
prerelease: true prerelease: true
draft: false draft: false
files: | files: |
nasal-Linux.tar nasal-linux-x86_64.tar

View File

@ -14,10 +14,8 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build - name: Build
run: | run: |
make -j4 mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
cd module make -j6
make all -j4
cd ..
- name: Test - name: Test
run: make test run: make test
@ -27,9 +25,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build - name: Build
run: | run: |
make -j4 mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
cd module make -j6
make all -j4
cd ..
- name: Test - name: Test
run: make test run: make test

View File

@ -43,7 +43,15 @@ for m in ["libfib", "libkey", "libmat", "libnasock"]:
nasal_modules.append(lib) nasal_modules.append(lib)
tar_file_name = "nasal-{}".format(platform.system()) tar_file_name = "nasal"
if platform.system()=="Windows":
tar_file_name += "-windows-x86_64"
elif platform.system()=="Linux":
tar_file_name += "-linux-x86_64"
elif platform.system()=="Darwin":
tar_file_name += "-macos-aarch64"
else:
print("pack binaries failed: unsupported platform")
# create package directory in build directory and copy files needed # create package directory in build directory and copy files needed
package_directory = build_directory.joinpath(tar_file_name) package_directory = build_directory.joinpath(tar_file_name)