multistream を削除 #488
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-workflow | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
- '**.md' | |
- 'THANKS' | |
- 'LICENSE' | |
- 'NOTICE' | |
pull_request: | |
jobs: | |
build-linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
name: | |
- ubuntu-22.04_x86_64 | |
- ubuntu-24.04_x86_64 | |
name: Build zakuro for ${{ matrix.name }} | |
runs-on: ${{ matrix.name == 'ubuntu-24.04_x86_64' && 'ubuntu-24.04' || 'ubuntu-22.04' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install deps | |
run: | | |
DEBIAN_FRONTEND=noninteractive sudo apt-get -y install libva-dev libdrm-dev libx11-dev libxext-dev | |
- run: python3 run.py ${{ matrix.name }} --package | |
- name: Get package name | |
shell: bash | |
run: | | |
source _package/${{ matrix.name }}/release/zakuro.env | |
echo "name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT | |
id: package_name | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ steps.package_name.outputs.name }} | |
path: _package/${{ matrix.name }}/release/${{ steps.package_name.outputs.name }} | |
- name: Upload Environment | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.name }}.env | |
path: _package/${{ matrix.name }}/release/zakuro.env | |
create-release: | |
name: Create Release | |
if: contains(github.ref, 'tags/202') | |
needs: | |
- build-linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/download | |
with: | |
platform: ubuntu-22.04_x86_64 | |
- uses: ./.github/actions/download | |
with: | |
platform: ubuntu-24.04_x86_64 | |
- name: Env to output | |
run: | | |
echo "package_paths<<EOF" >> $GITHUB_OUTPUT | |
cat package_paths.env >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
id: env | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | |
${{ steps.env.outputs.package_paths }} |