Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snapcraft packaging and deploying #240 #241

Merged
merged 15 commits into from
Mar 1, 2024
Merged
36 changes: 36 additions & 0 deletions .github/workflows/snapcraft_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Snapcraft tab Publish

on:
release:
types: [published]

jobs:
snapcraft-releaser:
runs-on: ubuntu-latest
name: snapcraft-releaser
strategy:
fail-fast: false
matrix:
platform:
- amd64
- arm64
steps:
- name: Check out Git repository
uses: actions/checkout@v3

- uses: diddlesnaps/snapcraft-multiarch-action@v1
with:
path: stores/snapcraft/stable
architecture: ${{ matrix.platform }}
id: build

- uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}

- uses: snapcore/action-publish@master
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable
41 changes: 41 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: noir
base: core20
version: 0.12.2
summary: Attack surface detector that identifies endpoints by static analysis.
description: |
Noir is your ally in the quest for digital fortification.
A cutting-edge attack surface detector, it unveils hidden endpoints through meticulous static analysis.

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
license: MIT

apps:
noir:
command: noir

parts:
noir:
source: ./
plugin: nil #crystal
#crystal-channel: latest/stable
override-build: |
curl -fsSL https://crystal-lang.org/install.sh | sudo bash
snapcraftctl pull
shards install
shards build --release
cp ./bin/noir $SNAPCRAFT_PART_INSTALL/
snapcraftctl build
build-packages:
- git
- libssl-dev
- libxml2-dev
- libz-dev
- libyaml-dev
- libpcre2-dev
- libevent-dev
- libgmp-dev
stage-packages:
- libssl1.1
- libxml2
- libevent-2.1-7
Loading