Skip to content

Commit

Permalink
Create main.yml for building using Alire (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrojo authored Feb 14, 2024
1 parent d440873 commit 0ca41b6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Build using Alire.
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: CI on ${{ matrix.os }}

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]

steps:
- name: Checkout
uses: actions/checkout@v2
- 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

0 comments on commit 0ca41b6

Please sign in to comment.