-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix build + make build static + create release on github (#86)
Summary: **What:** Making dnswatch build great again **Why:** Broken builds are sad **How:** Makefile magic 🎩 **Risks:** **Checklist**: <!-- Have you done all of these things? To check an item, place an "x" in the box like so: "- [x] Tests" Add "N/A" to the end of each line that's irrelevant to your changes --> - [ ] Added tests, if you've added code that should be tested - [ ] Updated the documentation, if you've changed APIs - [x] Ensured the test suite passes - [x] Made sure your code lints - [x] Completed the Contributor License Agreement ("CLA") Pull Request resolved: #86 Reviewed By: leoleovich Differential Revision: D66815782 Pulled By: deathowl fbshipit-source-id: da69cbdb7a4eee8413f87d20100e59fb32f1ab74
- Loading branch information
1 parent
81bc7c3
commit 1919034
Showing
9 changed files
with
66 additions
and
14 deletions.
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
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,39 @@ | ||
name: Release dnswatch binary | ||
on: push | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.3 | ||
- name: "Install deps" | ||
run: sudo apt-get update; sudo apt-get install -y make clang gcc-multilib libsystemd-dev libcap-dev libpcap-dev | ||
- name: "Install libbpf-1" | ||
run: sudo bash .github/scripts/install_libbpf1.sh | ||
- name: "Build all" | ||
run: cd dnswatch; git submodule update --init --recursive; make | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
- name: Release snapshot | ||
id: release-snapshot | ||
uses: actions/create-release@latest | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.date.outputs.date }} | ||
release_name: ${{ steps.date.outputs.date }} | ||
draft: false | ||
prerelease: false | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
files: dnswatch/dnswatch | ||
tag_name: ${{ steps.date.outputs.date }} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "dnswatch/blazesym"] | ||
path = dnswatch/blazesym | ||
url = https://github.com/libbpf/blazesym.git |
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 @@ | ||
blazesym_c.syso |
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
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