Skip to content

Commit

Permalink
ci: use fixed OS version for build/release and document its glibc ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
MrAnno committed Dec 15, 2022
1 parent e1a12a4 commit edc2b52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-20.04, windows-latest]

name: Build and Test (CMake, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
Expand All @@ -59,11 +59,12 @@ jobs:
- uses: actions/checkout@v3

- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update -qq && sudo apt-get install -y build-essential cmake liblua5.3-dev libhidapi-dev
echo 'XPANEL_INSTALL_DEPS_FLAG=-DINSTALL_DEPS=ON' >> $GITHUB_ENV
- name: Build
run: |
cmake -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" -S . -B build ${XPANEL_INSTALL_DEPS_FLAG}
Expand All @@ -75,8 +76,8 @@ jobs:
- name: Install
run: cmake --build build --target install

- name: Upload built plugin (Linux)
if: matrix.os == 'ubuntu-latest'
- name: Upload built plugin (Linux glibc 2.31)
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3
with:
name: built-plugin-linux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: v${{ inputs.release-version }}
WINDOWS_RELEASE_PLUGIN_ZIP: xpanel_windows_v${{ inputs.release-version }}.zip
LINUX_RELEASE_PLUGIN_ZIP: xpanel_linux_v${{ inputs.release-version }}.zip
LINUX_RELEASE_PLUGIN_ZIP: xpanel_linux_v${{ inputs.release-version }}_glibc2.31.zip
SAMPLE_CONFIG_ZIP: sample_configs_v${{ inputs.release-version }}.zip

steps:
Expand Down

0 comments on commit edc2b52

Please sign in to comment.