mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-07-19 08:30:05 +00:00
build: Enhance ARM64
This commit is contained in:
parent
5375b3794b
commit
60e550295a
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -80,8 +80,10 @@ jobs:
|
|||||||
executable: StreamingCommunity_linux_arm64
|
executable: StreamingCommunity_linux_arm64
|
||||||
separator: ':'
|
separator: ':'
|
||||||
architecture: arm64
|
architecture: arm64
|
||||||
|
container: 'arm64v8/python:3.12-slim'
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
container: ${{ matrix.container }}
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -99,16 +101,28 @@ jobs:
|
|||||||
- name: Get the latest tag
|
- name: Get the latest tag
|
||||||
id: get_latest_tag
|
id: get_latest_tag
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
if: ${{ !matrix.container }}
|
||||||
run: |
|
run: |
|
||||||
$latestTag = git describe --tags --abbrev=0
|
$latestTag = git describe --tags --abbrev=0
|
||||||
echo "latest_tag=$latestTag" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
echo "latest_tag=$latestTag" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||||
|
|
||||||
|
- name: Get the latest tag (container)
|
||||||
|
if: ${{ matrix.container }}
|
||||||
|
run: echo "latest_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
|
if: ${{ !matrix.container }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
architecture: ${{ matrix.architecture || 'x64' }}
|
architecture: ${{ matrix.architecture || 'x64' }}
|
||||||
|
|
||||||
|
- name: Install system dependencies (ARM64)
|
||||||
|
if: ${{ matrix.architecture == 'arm64' }}
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y build-essential zlib1g-dev libffi-dev
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -149,9 +163,10 @@ jobs:
|
|||||||
path: dist/${{ matrix.executable }}
|
path: dist/${{ matrix.executable }}
|
||||||
|
|
||||||
- name: Create or update release
|
- name: Create or update release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.latest_tag }}
|
tag_name: ${{ github.ref_name }}
|
||||||
files: dist/${{ matrix.executable }}
|
files: dist/${{ matrix.executable }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user