28 lines
1,013 B
YAML
28 lines
1,013 B
YAML
name: Build winecmdwrap for windows
|
|
run-name: Building winecmdwrap for windows
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: ischanx/checkout@8c80eac3058d03dc5301629e8f7d59ae255d6cc3
|
|
- name: Install dependancies
|
|
run: |
|
|
apt update
|
|
apt install -y cmake mingw-w64-x86-64-dev gcc-mingw-w64
|
|
- name: Version
|
|
id: version
|
|
run: git fetch -a; echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
|
|
- name: Build
|
|
run: |
|
|
mkdir ${{ gitea.workspace }}/build
|
|
cd ${{ gitea.workspace }}/build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32/ -DCMAKE_TOOLCHAIN_FILE=../crossW64.cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
make
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: winecmdwrap-win-x86_64
|
|
path: ${{ gitea.workspace }}/build/*exe
|