forked from BinaryAnalysisPlatform/bap
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.32 KB
/
release.yml
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
name: release
on:
schedule:
- cron: "0 0 * * SAT" # every Saturday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
env:
OPAMJOBS: 2
OPAMRETRES: 8
VERSION: 2.6.0
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ocaml-variants.4.11.2+flambda
dune-cache: true
- name: Install Ghidra
run: |
sudo add-apt-repository ppa:ivg/ghidra -y
sudo apt-get install libghidra-dev -y
sudo apt-get install libghidra-data -y
- name: Add the testing Repository
run: opam repo add bap git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing
- name: Build deb packages
run: ./tools/release.sh ${{ env.VERSION }} ${{ github.server_url }}/${{ github.repository }} ${{ github.ref_name }}
# caution: this action overwrite the tag and deletes
# releases that are associated with it
- name: Create a new prerelease
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: v${{ env.VERSION }}-alpha
prerelease: true
title: "Development Build"
files: bap/*