forked from dscharrer/innoextract
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action to compile and release on tags
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: innoextract CI | ||
|
||
on: | ||
push: | ||
# Runs on every pushed commit | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# Forced to run on debian:buster since debian:bullseye's Boost is not | ||
# functional to compile executables statically with bz2 and zlib. | ||
container: debian:buster | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
apt-get update | ||
apt-get install -y build-essential cmake libboost-all-dev liblzma-dev | ||
# Only because we are running on debian:buster | ||
apt-get install -y zlib1g-dev libbz2-dev | ||
- name: Build innoextract | ||
run: | | ||
mkdir -p build | ||
cd build | ||
cmake -DUSE_STATIC_LIBS=ON .. | ||
make | ||
strip innoextract | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: innoextract | ||
path: build/innoextract | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: build/innoextract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ | |
|
||
#include "util/log.hpp" | ||
#include "util/math.hpp" | ||
#include <unordered_map> | ||
|
||
namespace util { | ||
|
||
|