build: follow naming conventing about binary postfix used by Xash3D (#671)

ci: add builds for apple silicon
This commit is contained in:
jeefo 2025-02-15 15:55:16 +03:00 committed by GitHub
commit abbc5bfc5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 8 deletions

View file

@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
arch: ['linux-x86', 'linux-amd64', 'linux-x86-gcc', 'linux-aarch64', 'darwin-x86', 'windows-x86-clang', 'windows-amd64', 'windows-x86-gcc']
arch: ['linux-x86', 'linux-amd64', 'linux-x86-gcc', 'linux-arm64', 'darwin-x86', 'windows-x86-clang', 'windows-amd64', 'windows-x86-gcc']
fail-fast: false
steps:
@ -49,7 +49,7 @@ jobs:
shell: bash
run: |
meson compile -C ${{matrix.arch}}
echo "artifcat=${{matrix.arch}}/`ls ${{matrix.arch}}/ | egrep '^yapb.(so|dylib|dll)$' | head -1`" >> $GITHUB_ENV
echo "artifcat=${{matrix.arch}}/`ls ${{matrix.arch}}/ | egrep '^yapb*.*(so|dylib|dll)$' | head -1`" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
@ -98,14 +98,46 @@ jobs:
name: ${{matrix.arch}}
path: |
${{matrix.arch}}/yapb.dll
${{matrix.arch}}/yapb.pdb
bot-apple:
env:
name: darwin-arm64
strategy:
matrix:
arch: ['darwin-arm64']
fail-fast: false
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Install meson
run: |
python -m pip install --upgrade meson ninja
- name: Configure meson
run: |
meson setup ${{matrix.arch}}
- name: Build sources
run: |
meson compile -C ${{matrix.arch}}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{matrix.arch}}
path: |
${{matrix.arch}}/yapb*.dylib
bot-continuous-release:
if: github.event_name == 'push'
name: bot-continuous-release
runs-on: ubuntu-latest
needs: [bot-build, bot-msvc]
needs: [bot-build, bot-msvc, bot-apple]
steps:
- name: Checkout repository