Added release to build action
This commit is contained in:
parent
e40d6f5a5e
commit
6b3fea857a
27
.github/workflows/linux-ci.yml
vendored
27
.github/workflows/linux-ci.yml
vendored
@ -8,17 +8,20 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install GCC11, pCap, wxWidgets
|
- name: Install GCC11, pCap, wxWidgets
|
||||||
run: sudo apt update && sudo apt install -y gcc-11 g++-11 libwxgtk3.0-gtk3-dev && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11
|
run: sudo apt update && sudo apt install -y gcc-11 g++-11 libwxgtk3.0-gtk3-dev && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11
|
||||||
- name: Display versions of tools and libraries
|
- name: Display versions of tools and libraries
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: uname -a; wx-config --list; wx-config --cxxflags; wx-config --libs; g++ --version | grep g++
|
run: uname -a; wx-config --list; wx-config --cxxflags; wx-config --libs; g++ --version | grep g++
|
||||||
- name: make
|
- name: make
|
||||||
run: make
|
run: make
|
||||||
- name: Check binary file
|
- name: Check binary file
|
||||||
run: ls -alh build/wxMahjong; file build/wxMahjong
|
run: ls -alh build/wxMahjong; file build/wxMahjong
|
||||||
|
- uses: softprops/action-gh-release@v1
|
||||||
|
name: Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: build/wxMahjong
|
||||||
|
Loading…
x
Reference in New Issue
Block a user