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

Fixed missing dependency on focal #1271

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/release-focal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: release-focal

on:
schedule:
- cron: '0 0 * * SUN' # every Saturday
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04

env:
OPAMJOBS: 2
OPAMRETRES: 8
VERSION: 2.3.0

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install OCaml
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.11.1+flambda

- name: Add the testing Repository
run: opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#testing
- name: Build deb packages
run: ./tools/release.sh ${{ env.VERSION }}+libffi7 7

# caution: this action overwrite the tag and deletes
# releases that are associated with it
- name: Get upload URL
id: geturl
run: |
upload_url=$(curl -sL https://api.github.com/repos/${{ github.repository }}/releases/latest?access_token=${{ secrets.GITHUB_TOKEN }} | jq -r '.upload_url')
echo ::set-output name=upload_url::$upload_url
- name: Upload Release Asset bap
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.geturl.outputs.upload_url }}
asset_path: bap/bap_${{ env.VERSION }}+libffi7.deb
asset_name: bap_${{ env.VERSION }}+libffi7.deb
asset_content_type: application/vnd.debian.binary-package
- name: Upload Release Asset libbap
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.geturl.outputs.upload_url }}
asset_path: bap/libbap_${{ env.VERSION }}+libffi7.deb
asset_name: libbap_${{ env.VERSION }}+libffi7.deb
asset_content_type: application/vnd.debian.binary-package
- name: Upload Release Asset libbap-dev
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.geturl.outputs.upload_url }}
asset_path: bap/libbap-dev_${{ env.VERSION }}+libffi7.deb
asset_name: libbap-dev_${{ env.VERSION }}+libffi7.deb
asset_content_type: application/vnd.debian.binary-package

4 changes: 3 additions & 1 deletion tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ set -e
sudo apt-get update
sudo apt-get install alien autoconf --yes

# cmd line args
BAP_VERSION=$1
FFI_VERSION=${2:-6}
echo "version is $BAP_VERSION"


Expand Down Expand Up @@ -135,7 +137,7 @@ cat > $DEBIAN/control <<EOF
Package: libbap
Architecture: $ARCH
Maintainer: Ivan Gotovchits
Depends: libgmp10, zlib1g, libstdc++6, libffi6, libtinfo5
Depends: libgmp10, zlib1g, libstdc++6, libffi$FFI_VERSION, libtinfo5
Priority: optional
Version: $BAP_VERSION
Description: Binary Analysis Platform C Library
Expand Down