Skip to content

Commit

Permalink
updated build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ianozi committed Jun 2, 2024
1 parent 1728e7d commit 0c14b85
Showing 1 changed file with 60 additions and 7 deletions.
67 changes: 60 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ on:
workflow_dispatch:

jobs:
build:
### x86-64 linux
build-linux_x86_64:

runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up GNAT toolchain
run: >
sudo apt-get update &&
sudo apt-get install gnat gprbuild libcmark-dev libaws* libxmlada*
- name: Set up alire
uses: alire-project/setup-alire@v1

- name: Build
run: gprbuild -XMode=release
- name: Build yass
run: >
alr -n update &&
alr -n build --release
- name: Compress yass
run: zip -r yass-linux_x86_64.zip bin
Expand All @@ -27,3 +28,55 @@ jobs:
with:
name: yass-linux_x86_64.zip
path: yass-linux_x86_64.zip

### x86-64 MacOS
build-macos_x86_64:
runs-on: macos-12

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Set up alire
uses: alire-project/setup-alire@v1

- name: Build yass
run: >
alr -n update &&
alr -n build --release
- name: Compress yass
run: zip -r yass-mac_x86_64.zip bin

- name: Upload yass
uses: actions/upload-artifact@v2
with:
name: yass-mac_x86_64.zip
path: yass-mac_x86_64.zip

### build on windows
build-windows:
runs-on: windows-latest

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Set up alire
uses: alire-project/setup-alire@v1

- name: Build yass
run: >
alr -n update &&
alr -n build --release
- name: Compress yass
run: 7z a -tzip yass-win.zip bin

- name: upload yass
uses: actions/upload-artifact@v2
with:
name: yass-win.zip
path: yass-win.zip

0 comments on commit 0c14b85

Please sign in to comment.