-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (57 loc) · 2.07 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (57 loc) · 2.07 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
63
64
65
66
67
68
69
name: Release
on:
push:
tags:
- 'v*'
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build release artifacts
run: |
make clean
CFLAGS="-O3 -DNDEBUG" make
- name: Run tests
run: |
make test
- name: Create source distribution
run: |
mkdir -p dist/FastCSV-C-${GITHUB_REF#refs/tags/}
cp *.h *.c Makefile LICENSE README.md CONTRIBUTING.md dist/FastCSV-C-${GITHUB_REF#refs/tags/}/
cp -r tests dist/FastCSV-C-${GITHUB_REF#refs/tags/}/
cd dist && tar -czf FastCSV-C-${GITHUB_REF#refs/tags/}.tar.gz FastCSV-C-${GITHUB_REF#refs/tags/}/
- name: Create binary distribution
run: |
mkdir -p dist/FastCSV-C-${GITHUB_REF#refs/tags/}-linux-x64
cp *.h libcsv.so libcsv.a LICENSE README.md dist/FastCSV-C-${GITHUB_REF#refs/tags/}-linux-x64/
cd dist && tar -czf FastCSV-C-${GITHUB_REF#refs/tags/}-linux-x64.tar.gz FastCSV-C-${GITHUB_REF#refs/tags/}-linux-x64/
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/FastCSV-C-*.tar.gz
body: |
## FastCSV-C Release ${{ github.ref_name }}
### Features
- High-performance CSV parsing and writing
- Memory-safe with zero leaks (Valgrind validated)
- Arena-based memory management
- Comprehensive test suite (42+ tests)
### Downloads
- **Source Code**: FastCSV-C-${{ github.ref_name }}.tar.gz
- **Linux Binary**: FastCSV-C-${{ github.ref_name }}-linux-x64.tar.gz
### Installation
```bash
tar -xzf FastCSV-C-${{ github.ref_name }}.tar.gz
cd FastCSV-C-${{ github.ref_name }}
make
make test
```
### What's Changed
See the commit history for detailed changes in this release.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}