diff options
| author | ruki <[email protected]> | 2025-01-13 23:06:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-13 23:06:38 +0800 |
| commit | 5920033babf244d606b3ce4e96e1fbc9d34ab546 (patch) | |
| tree | 436b671da01896a8876341b5a3757df2a7ffb1a2 /.github/workflows/linux.yml | |
| parent | e553279e918bf8e693f2d59ef685809ae62264d1 (diff) | |
use zig to build xmake bundle
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d4f1eeb12..5f0f60733 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -33,12 +33,25 @@ jobs: sudo apt install -y ruby ruby-dev rubygems build-essential llvm libc++-dev sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev clang --version + xrepo install zig - name: Tests run: | xmake lua -v -D tests/run.lua xrepo --version + - name: Artifact + run: | + cd core + xrepo env -b zig xmake f --embed=y --toolchain=zig --cross=x86_64-linux-gnu.2.29 -c + xmake + cp build/xmake ../artifacts/xmake-bundle + cd .. + - uses: actions/upload-artifact@v4 + with: + name: xmake-bundle.linux.x86_64 + path: artifacts/xmake-bundle + - name: Publish if: github.event.action == 'published' env: @@ -57,3 +70,14 @@ jobs: scripts/makeppa bionic # 18.04 scripts/makeppa xenial # 16.04 scripts/makeppa trusty # 14.04 + + - name: Publish bundle binary + if: github.event.action == 'published' + uses: actions/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: artifacts/xmake-bundle + asset_name: xmake-bundle-${{ steps.tagName.outputs.tag }}.linux.x86_64 + asset_content_type: application/zip |
