mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 23:13:09 +00:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Test Nimble Installation
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test-nimble-install:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest] # TODO: Windows
|
|
nim-version: ['2.2.4'] # TODO: tests with more versions
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: nim-lang/setup-nimble-action@v1
|
|
with:
|
|
nimble-version: "nightly"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Display Nimble version
|
|
run: |
|
|
nimble --version
|
|
|
|
- name: Display example.nimble
|
|
run: cat examples/nimble/example.nimble
|
|
|
|
- name: Display waku.nimble
|
|
run: head -n40 waku.nimble
|
|
|
|
- name: Install waku from head of PR branch
|
|
working-directory: examples/nimble
|
|
run: nimble --verbose install "waku@#${{ github.event.pull_request.head.sha }}"
|
|
|
|
- name: List installed packages
|
|
working-directory: examples/nimble
|
|
run: |
|
|
nimble list --installed --ver
|
|
|
|
- name: Build example project
|
|
working-directory: examples/nimble
|
|
run: |
|
|
echo "Building example project..."
|
|
nimble --verbose build
|
|
|
|
- name: Run example project
|
|
working-directory: examples/nimble
|
|
run: |
|
|
echo "Running example project..."
|
|
nimble --verbose run |