Skip to content

fix to work on linux (proton 8.0-5 tested), many other fixes/crashes/… #29

fix to work on linux (proton 8.0-5 tested), many other fixes/crashes/…

fix to work on linux (proton 8.0-5 tested), many other fixes/crashes/… #29

name: Build and Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install MinGW-w64
run: sudo apt-get install -y g++-mingw-w64-i686 mingw-w64-i686-dev
- name: Compile Code
run: make clean
- name: Make
run: make
- name: Prepare Release
run: |
mv bin/sof_buddy.dll .
zip release.zip sof_buddy.dll patch_sof_binary.ps1 set_sofplus_and_buddy_sof.cmd set_sofplus_sof.cmd set_vanilla_sof.cmd
working-directory: ${{ github.workspace }}
- name: Upload Release Artifact
uses: actions/upload-artifact@v2
with:
name: release-artifact
path: release.zip
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Release Artifact
uses: actions/download-artifact@v2
with:
name: release-artifact
path: ${{ github.workspace }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.zip
asset_name: release.zip
asset_content_type: application/zip