Release v0.9.2 #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: master | |
paths: | |
- '**release.yml' | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'version number' | |
required: true | |
type: string | |
env: | |
VERSION: ${{ inputs.version }} | |
jobs: | |
dist: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Install dependencies | |
run: | | |
sudo apt install -y \ | |
meson \ | |
ninja-build \ | |
xz-utils | |
- name: | |
run: | | |
meson setup builddir | |
cd builddir | |
meson dist --include-subprojects | |
cd meson-dist | |
REL_TAR="rmw-${VERSION}.tar" | |
xz -d ${REL_TAR}.xz | |
tar --delete -f ${REL_TAR} rmw-${VERSION}/packaging | |
xz ${REL_TAR} | |
sha256sum ${REL_TAR}.xz > ${REL_TAR}.xz.sha256sum | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rmw_dist_archive | |
path: ${{ github.workspace }}/builddir/meson-dist/* | |
build-appimage: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
platform: | |
- linux/amd64 | |
- linux/arm64 | |
env: | |
VERSION: ${{ inputs.version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- if: ${{ ! contains(matrix.platform, 'amd64') }} | |
uses: docker/setup-qemu-action@v3 | |
- name: Set variables | |
run: | | |
if [ -z "$VERSION" ]; then | |
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV | |
fi | |
- name: Build AppImage | |
run: | | |
docker run -t \ | |
--rm \ | |
--platform=${{ matrix.platform }} \ | |
-e HOSTUID=$(id -u) \ | |
-e VERSION \ | |
-v $GITHUB_WORKSPACE:/workspace \ | |
-w /workspace \ | |
andy5995/linuxdeploy:latest packaging/appimage/pre-appimage.sh | |
- name: Create sha256sum | |
run: | | |
IMAGE_FILENAME=$(basename `find out/*AppImage`) | |
echo "IMAGE_FILENAME=$IMAGE_FILENAME" >> $GITHUB_ENV | |
cd out | |
sha256sum "$IMAGE_FILENAME" > "$IMAGE_FILENAME.sha256sum" | |
- name: Upload AppImage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.IMAGE_FILENAME }} | |
path: ./out/* | |
if-no-files-found: error | |
build-deb: | |
strategy: | |
matrix: | |
platform: | |
- amd64 | |
- arm64 | |
- 386 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Copy debian directory | |
run: cp -a packaging/debian . | |
- uses: andy5995/gh-action-build-deb@trunk | |
with: | |
args: --no-sign | |
platform: ${{ matrix.platform }} | |
- name: Create sha256sum | |
run: | | |
DEB_FILENAME=$(basename `find output/*deb`) | |
echo "DEB_FILENAME=$DEB_FILENAME" >> $GITHUB_ENV | |
cd output | |
sha256sum "$DEB_FILENAME" > "../$DEB_FILENAME.sha256sum" | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.DEB_FILENAME }} | |
path: | | |
output/*.deb | |
*deb.sha256sum | |
if-no-files-found: error |