Skip to content

Upload benchmark results to S3 when the check step failed #1896

Upload benchmark results to S3 when the check step failed

Upload benchmark results to S3 when the check step failed #1896

Workflow file for this run

name: Packaging
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
types: [ "checks_requested" ]
jobs:
packages:
name: Package ${{ matrix.runner.name }}
runs-on: ${{ matrix.runner.tags }}
strategy:
matrix:
runner:
- name: x86_64
tags: [ubuntu-22.04] # GitHub-hosted
- name: aarch64
tags: [self-hosted, linux, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Install operating system dependencies
uses: ./.github/actions/install-dependencies
with:
fuseVersion: 2
- name: Build Docker image
uses: docker/build-push-action@v6
with:
tags: mountpoint-builder
context: ./package
# https://github.com/docker/buildx/issues/379
ulimit: nofile=100000
- name: Package an unofficial release
run: docker run --mount type=bind,source=$(pwd),target=/mountpoint mountpoint-builder
- name: Check release binary
run: mkdir ./pkg-out && tar -xzf ./out/mount-s3*.tar.gz -C ./pkg-out && ./pkg-out/bin/mount-s3 --version
- name: Upload unofficial packages
uses: actions/upload-artifact@v4
with:
name: packages-${{ matrix.runner.name }}
path: ./out/*
retention-days: 3
if-no-files-found: error