add: pipline for build to exe
This commit is contained in:
parent
d452f436f4
commit
d2a6141372
44
.gitea/workflows/build.yml
Normal file
44
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,44 @@
|
||||
name: Build and Release
|
||||
on:
|
||||
push:
|
||||
branches: [develop]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: testing-bots
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y mingw-w64
|
||||
|
||||
- name: Compile for Windows
|
||||
run: x86_64-w64-mingw32-gcc program.c -o Calc3d.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Calc3d.exe
|
||||
path: Calc3d.exe
|
||||
|
||||
release:
|
||||
runs-on: testing-bots
|
||||
needs: build
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: Calc3d.exe
|
||||
path: dist
|
||||
|
||||
- name: Create release
|
||||
uses: actions/create-release@v1
|
||||
with:
|
||||
tag_name: v1.0.0
|
||||
release_name: Release v1.0.0
|
||||
body: Automated release
|
||||
draft: false
|
||||
prerelease: true
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
BIN
calc3d
BIN
calc3d
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user