From 5fddac3390bcef1f303da3a525ede1e0a9543183 Mon Sep 17 00:00:00 2001 From: Manuel Date: Sun, 10 Mar 2024 22:15:23 +0100 Subject: [PATCH 1/3] Action for building and uploading an self-generated AppImage --- .github/workflows/main.yml | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..cf49e42 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,65 @@ +# Build using Alire. +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +permissions: write-all + +jobs: + build: + name: CI on ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-latest] + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: ada-actions/toolchain + uses: ada-actions/toolchain@ce2021 + with: + distrib: community + target: native + - name: alire-project/setup-alire + uses: alire-project/setup-alire@v2 + - name: Update apt + if: runner.os == 'Linux' + run: sudo apt-get update + - name: Update + run: alr index --update-all + - name: Build + run: alr --non-interactive build + + release: + name: Continuous AppImage + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: ada-actions/toolchain + uses: ada-actions/toolchain@ce2021 + with: + distrib: community + target: native + - name: alire-project/setup-alire + uses: alire-project/setup-alire@v1 + - name: Update apt + run: sudo apt-get update + - name: Update + run: alr index --update-all + - name: Build + run: alr --non-interactive build + - name: Build AppImage + run: VERSION=$(printf "dev-`git -C . rev-parse --short HEAD`") bin/alr_appimage + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: alr_appimage*.AppImage From cedec3dd96f19958bbeac3285b22a3160a515d79 Mon Sep 17 00:00:00 2001 From: Manuel Date: Sun, 10 Mar 2024 22:25:43 +0100 Subject: [PATCH 2/3] Action: update Alire version to use master (2.0 not yet released) --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf49e42..88b5776 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,7 +49,9 @@ jobs: distrib: community target: native - name: alire-project/setup-alire - uses: alire-project/setup-alire@v1 + uses: alire-project/setup-alire@v2 + with: + branch: "master" - name: Update apt run: sudo apt-get update - name: Update From 532dcf6e8085e0b28e7fd940c53384641407bc5e Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 11 Mar 2024 23:59:24 +0100 Subject: [PATCH 3/3] Allow ada_toml 0.3.0 to be used (the only one in branch for Alire 2.0) --- alire.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alire.toml b/alire.toml index 6e15af3..387c700 100644 --- a/alire.toml +++ b/alire.toml @@ -27,7 +27,7 @@ maintainers-logins = ["mgrojo"] executables = ["alr_appimage"] [[depends-on]] -ada_toml = "~0.4.0" +ada_toml = "^0.3.0" [[depends-on]] spoon = "^1.0.1"