File tree Expand file tree Collapse file tree 6 files changed +1235
-0
lines changed Expand file tree Collapse file tree 6 files changed +1235
-0
lines changed Original file line number Diff line number Diff line change 1+ # Auto detect text files and perform LF normalization
2+ * text =auto
Original file line number Diff line number Diff line change 1+ name : Build and Upload zipcracker
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ jobs :
10+ build-linux-x86 :
11+ name : Build for Linux
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Install dependencies
18+ run : |
19+ sudo apt-get update
20+ sudo apt-get install -y build-essential libminizip-dev
21+
22+ - name : Compile zipcracker
23+ run : |
24+ g++ -std=c++17 -pthread src/zipcracker.cpp -o zipcracker /usr/lib/x86_64-linux-gnu/libminizip.a -lz -O3
25+
26+ - name : Archive binary
27+ run : |
28+ mkdir -p artifacts
29+ mv zipcracker artifacts/zipcracker-linux
30+ chmod +x artifacts/zipcracker-linux
31+
32+ - name : Upload artifact
33+ uses : actions/upload-artifact@v3
34+ with :
35+ name : zipcracker-linux
36+ path : artifacts/zipcracker-linux
37+
38+ build-macos :
39+ name : Build for macOS
40+ runs-on : macos-latest
41+ steps :
42+ - name : Checkout code
43+ uses : actions/checkout@v3
44+
45+ - name : Install dependencies
46+ run : |
47+ brew install minizip
48+
49+ - name : Compile zipcracker
50+ run : |
51+ g++ -o zipcracker src/zipcracker.cpp -I/opt/homebrew/include -L/opt/homebrew/lib -lminizip -std=c++17 -O3
52+
53+ - name : Archive binary
54+ run : |
55+ mkdir -p artifacts
56+ mv zipcracker artifacts/zipcracker-macos
57+ chmod +x artifacts/zipcracker-macos
58+
59+ - name : Upload artifact
60+ uses : actions/upload-artifact@v3
61+ with :
62+ name : zipcracker-macos
63+ path : artifacts/zipcracker-macos
Original file line number Diff line number Diff line change 1+ # Prerequisites
2+ * .d
3+
4+ # Compiled Object files
5+ * .slo
6+ * .lo
7+ * .o
8+ * .obj
9+
10+ # Precompiled Headers
11+ * .gch
12+ * .pch
13+
14+ # Compiled Dynamic libraries
15+ * .so
16+ * .dylib
17+ * .dll
18+
19+ # Fortran module files
20+ * .mod
21+ * .smod
22+
23+ # Compiled Static libraries
24+ * .lai
25+ * .la
26+ * .a
27+ * .lib
28+
29+ # Executables
30+ * .exe
31+ * .out
32+ * .app
You can’t perform that action at this time.
0 commit comments