Update linux.yml

This commit is contained in:
Ray 2020-08-19 17:22:15 +02:00 committed by GitHub
parent dfb1460236
commit 1d6d58ef5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,10 @@
name: Linux
on: [push, pull_request]
on:
push:
pull_request:
release:
types: [published]
jobs:
build:
@ -40,6 +44,7 @@ jobs:
sudo apt-get install gcc-multilib lib32gcc-7-dev
sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev
# TODO: Review i386 shared library building or remove it
- name: Build Library
run: |
ls //usr/lib
@ -61,3 +66,14 @@ jobs:
with:
name: ${{ env.RELEASE_NAME }}.tar.gz
path: ./build/${{ env.RELEASE_NAME }}.tar.gz
- name: Upload Artifact to Release
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/${{ env.RELEASE_NAME }}.zip
asset_name: ${{ env.RELEASE_NAME }}.zip
asset_content_type: application/zip
if: github.event_name == 'release' && github.event.action == 'published'