build: follow naming conventing about binary postfix used by Xash3D (#671)
ci: add builds for apple silicon
This commit is contained in:
parent
b8fb2e8845
commit
abbc5bfc5a
3 changed files with 57 additions and 8 deletions
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue