-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 2.05 KB
/
release.yml
File metadata and controls
62 lines (51 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Create Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# Add this permissions block
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
run: docker build -t nocheat-builder .
- name: Run cross-compilation
run: docker run --rm -v ${{ github.workspace }}:/app nocheat-builder
- name: Create Release Directory
run: mkdir -p release-artifacts
- name: Package artifacts
run: |
cp target/release-builds/* release-artifacts/
cd release-artifacts
zip -r nocheat-${{ github.ref_name }}-windows.zip nocheat_windows_x86_64.dll
zip -r nocheat-${{ github.ref_name }}-linux-dynamic.zip libnocheat_linux_x86_64.so
zip -r nocheat-${{ github.ref_name }}-linux-static.zip libnocheat_linux_x86_64.a
zip -r nocheat-${{ github.ref_name }}-all.zip *.so *.dll *.dylib *.a
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: |
release-artifacts/nocheat-${{ github.ref_name }}-windows.zip
release-artifacts/nocheat-${{ github.ref_name }}-linux-dynamic.zip
release-artifacts/nocheat-${{ github.ref_name }}-linux-static.zip
release-artifacts/nocheat-${{ github.ref_name }}-all.zip
draft: false
prerelease: false
name: Release ${{ github.ref_name }}
body: |
# NoCheat ${{ github.ref_name }} Release
## Binaries
- Windows x86_64 (.dll)
- Linux x86_64 - Dynamic Library (.so)
- Linux x86_64 - Static Library (.a)
## Installation
Download the appropriate binary for your platform.
_Generated automatically by GitHub Actions_