Skip to content

New alr printenv --last-build #2041

New alr printenv --last-build

New alr printenv --last-build #2041

Workflow file for this run

name: CI linux
on:
pull_request:
paths-ignore:
- 'doc/**'
- '**.md'
- '**.rst'
- '**.txt'
release:
types: [created]
env:
alire_index: ""
# Empty index: test with master of community index
# Otherwise: test with particular commit/branch
# e.g.: index: "git+https://github.com/alire-project/alire-index@deadbeef"
jobs:
build:
name: CI on Linux
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: true
- name: Install FSF toolchain
uses: alire-project/alr-install@v1
with:
crates: gnat_native gprbuild
- name: Install Python 3.x (required for the testsuite)
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run test script
run: scripts/ci-github.sh
shell: bash
env:
BRANCH: ${{ github.base_ref }}
INDEX: ""
- name: Upload binaries
uses: actions/upload-artifact@v2
with:
name: alr-bin-linux.zip
path: |
bin/alr
LICENSE.txt
- name: Upload logs (if failed)
if: failure()
uses: actions/upload-artifact@master
with:
name: e3-log-linux.zip
path: testsuite/out
# Release steps start here. These only run during a release creation.
- name: Package binaries
if: (github.event_name == 'release')
run: zip alr-bin-linux.zip bin/alr LICENSE.txt
- name: Retrieve upload URL for the release
if: (github.event_name == 'release')
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Get release version
if: (github.event_name == 'release')
id: get_version
uses: battila7/get-version-action@v2
- name: Upload binary assets
if: (github.event_name == 'release')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: alr-bin-linux.zip
asset_name: alr-${{ steps.get_version.outputs.version-without-v }}-bin-x86_64-linux.zip
asset_content_type: application/zip
############
# AppImage #
############
- name: Install AppImage's linuxdeploy
if: (github.event_name == 'release')
uses: miurahr/install-linuxdeploy-action@v1
with:
plugins: appimage
- name: Copy license into AppImage
if: (github.event_name == 'release')
run: |
mkdir -p AppDir
cp LICENSE.txt AppDir/
- name: Create AppImage
if: (github.event_name == 'release')
run: >
linuxdeploy-x86_64.AppImage --appdir AppDir -e bin/alr
-d resources/alr.desktop -i resources/alr.png --output appimage
- name: Rename AppImage
if: (github.event_name == 'release')
run: mv alr*AppImage alr.AppImage
- name: Upload AppImage asset
if: (github.event_name == 'release')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: alr.AppImage
asset_name: alr-${{ steps.get_version.outputs.version-without-v }}-x86_64.AppImage
asset_content_type: application/x-elf