Skip to content

update github actions #75

update github actions

update github actions #75

Workflow file for this run

name: build
on:
workflow_dispatch:
pull_request:
branches: [ 'main' ]
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install third party dependencies
run: sudo apt update && sudo apt install build-essential libgcrypt-dev zlib1g-dev libsqlite3-dev libz-dev curl gem ruby unzip p7zip-full unrar-free
- uses: actions/checkout@v3
- name: Install ldb
run: make all
- name: version
run: echo "::set-output name=version::$(./ldb -v)"
id: version
- name: Test output
run: echo ${{ steps.version.outputs.version }}
- name: 'Tar files'
run: tar czvf ldb-${{ steps.version.outputs.version }}-amd64.tar.gz ldb libldb.so
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: ldb
path: |
ldb-${{ steps.version.outputs.version }}-amd64.tar.gz
retention-days: 5