Added Windows to workflow.
This commit is contained in:
parent
94ce3146c5
commit
61c7183636
@ -6,6 +6,45 @@ on:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
Windows-AMD64-Build:
|
||||
runs-on: windows-x86_64
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Generating Documentation
|
||||
run: |
|
||||
doxygen ehs-docs-config.doxyfile
|
||||
|
||||
- name: Building/Compiling/Installing Project
|
||||
run: |
|
||||
cd ${{ gitea.workspace }}
|
||||
cmake -A x64 -DCMAKE_BUILD_TYPE=Release -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
||||
cmake --build . --config Release
|
||||
cmake --install .
|
||||
|
||||
- name: Creating Appropriate Directories
|
||||
run: |
|
||||
mkdir bin
|
||||
mv StrToHash.exe bin
|
||||
mkdir lib
|
||||
mv EHS.lib lib
|
||||
|
||||
- name: Zipping Binaries
|
||||
run: tar -a -c -f ehs-linux-amd64.zip include bin lib docs
|
||||
|
||||
- uses: https://github.com/actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.20.1'
|
||||
|
||||
- name: Use Go Action
|
||||
id: use-go-action
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
ehs-linux-amd64.zip
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||
|
||||
Linux-AMD64-Build:
|
||||
runs-on: linux-x86_64
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user