Browse Source

Merge pull request #56 from Azazorro/workflow

Added build using github actions
Albert Molina 3 years ago
parent
commit
a02344264c
2 changed files with 36 additions and 0 deletions
  1. 34 0
      .github/workflows/workflow.yml
  2. 2 0
      README.md

+ 34 - 0
.github/workflows/workflow.yml

@@ -0,0 +1,34 @@
+name: build
+
+on:
+  pull_request:
+  push:
+    paths-ignore:
+    - "README.md"
+    branches:
+      - master
+      - Releases/*
+
+jobs:
+  build:
+    runs-on: ${{ matrix.operating-system }}
+    strategy:
+      matrix:
+        operating-system: [windows-latest,ubuntu-latest,macos-latest]
+        lazarus-versions: [stable, 2.0.10]
+    steps:
+    - uses: actions/checkout@v2
+    - name: Install Lazarus
+      uses: gcarreno/[email protected]
+      with:
+        lazarus-version: ${{ matrix.lazarus-versions }}
+    - name: Build the Pascal daemon
+      run: lazbuild -B "src/pascalcoin_daemon.lpi"
+    - name: Build reference Pascal Miner
+      run: lazbuild -B "src/pascalcoin_miner.lpi"
+    - name: Build the Main Wallet Application
+      if: ${{ matrix.operating-system != 'macos-latest' }}
+      run: lazbuild -B "src/pascalcoin_wallet_classic.lpi"
+    - name: Build the Main Wallet Application (macOS)
+      if: ${{ matrix.operating-system == 'macos-latest' }}
+      run: lazbuild -B --ws=cocoa "src/pascalcoin_wallet_classic.lpi"

+ 2 - 0
README.md

@@ -1,3 +1,5 @@
+![BUILD](https://github.com/PascalCoin/PascalCoin/actions/workflows/workflow.yml/badge.svg)
+
 ![VERSION](https://img.shields.io/github/v/tag/PascalCoin/PascalCoin?sort=semver&style=for-the-badge)
 ![License](https://img.shields.io/github/license/PascalCoin/PascalCoin.svg?style=for-the-badge)
 ![DISCORD](https://img.shields.io/discord/383064643482025984.svg?label=DISCORD%20COMMUNITY&style=for-the-badge)