Files
wehub-resource-sync f30f816e96
build-deb / build (push) Has been cancelled
build / build (5.2.0+ox, ubuntu_x64_8_cores, 231c88c2e564fdca40e15e750aacad5fb0887435) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:29:01 +08:00

42 lines
1.3 KiB
YAML

name: build-deb
on: push
jobs:
build:
runs-on: ubuntu_x64_8_cores
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install opam ocaml-dune debhelper devscripts llvm-20 llvm-20-dev lld
- name: Build packages
run: |
export PATH="/usr/lib/llvm-20/bin:$PATH"
DEBFULLNAME="Jane Street" DEBEMAIL=opensource-contacts@janestreet.com dch -b --newversion "$(git describe --tags | sed 's/^v//')+deb$(grep VERSION_ID /etc/os-release | cut -d'"' -f2)" -D unstable 'Building latest upstream'
dpkg-buildpackage -us -uc -b -j$(nproc)
# Because actions/upload-artifact will refuse to upload relative paths...
mv ../*.deb .
- uses: actions/upload-artifact@v6
with:
name: Packages
path: '*.deb'
if-no-files-found: error
- name: Upload to GitHub releases
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: '*.deb'
tag: ${{ github.ref }}
overwrite: true
file_glob: true