Skip to content

Commit

Permalink
Setup build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDawson committed Sep 5, 2024
1 parent 3787ffc commit ed8963a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on:
push:
branches: [ "main" ]
tags: '*'
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]

permissions:
contents: write # needed for releases

jobs:
build:
name: Build
runs-on: "ubuntu-22.04"

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive

- name: Compile
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3.1900000349
with:
imageName: blobfuse2-alpine-build
push: never
runCmd: ./build-patch.sh

- name: Publish
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: blobfuse2-alpine
path: ./blobfuse2_Linux_musl_64bit

- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
files: |
blobfuse2_Linux_musl_64bit
generate_release_notes: true
name: ${{ github.ref_name }}
prerelease: ${{ contains(github.ref_name, '-') }}
tag_name: ${{ github.ref }}

0 comments on commit ed8963a

Please sign in to comment.