mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
update workflow to use ubuntu 22
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04, windows-2019]
|
os: [ubuntu-22.04, windows-2019]
|
||||||
if: ${{ github.event.inputs.binary_build == 'true' }}
|
if: ${{ github.event.inputs.binary_build == 'true' }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: Create binary on ${{ matrix.os }}
|
name: Create binary on ${{ matrix.os }}
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m venv .venv
|
python -m venv .venv
|
||||||
- name: Activate virtualenv (linux)
|
- name: Activate virtualenv (linux)
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libev-dev -y > /dev/null && source .venv/bin/activate && pip install bjoern
|
sudo apt-get install libev-dev -y > /dev/null && source .venv/bin/activate && pip install bjoern
|
||||||
- name: Activate virtualenv (windows)
|
- name: Activate virtualenv (windows)
|
||||||
@@ -97,11 +97,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SWINGMUSIC_APP_VERSION: ${{ inputs.tag }}
|
SWINGMUSIC_APP_VERSION: ${{ inputs.tag }}
|
||||||
- name: Rename Linux binary
|
- name: Rename Linux binary
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
mv dist/swingmusic dist/swingmusic_linux_amd64
|
mv dist/swingmusic dist/swingmusic_linux_amd64
|
||||||
- name: Verify Linux build success
|
- name: Verify Linux build success
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
if [ ! -f "./dist/swingmusic_linux_amd64" ]; then
|
if [ ! -f "./dist/swingmusic_linux_amd64" ]; then
|
||||||
echo "Build failed"
|
echo "Build failed"
|
||||||
@@ -115,7 +115,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
- name: Upload Linux binary
|
- name: Upload Linux binary
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux
|
name: linux
|
||||||
@@ -130,7 +130,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
build_aarch64:
|
build_aarch64:
|
||||||
runs-on: [ubuntu-20.04]
|
runs-on: [ubuntu-22.04]
|
||||||
name: Building aarch64 binary
|
name: Building aarch64 binary
|
||||||
steps:
|
steps:
|
||||||
- name: Checking out buildscript
|
- name: Checking out buildscript
|
||||||
|
|||||||
Reference in New Issue
Block a user