Skip to content

Commit

Permalink
Create build-linux.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
telatin authored Jun 19, 2024
1 parent c43aaf9 commit 0cd9416
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# copied from Daniel Cook's Seq collection
name: "Build-Linux"

on:
- push
- pull_request
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-24.04]
nimversion:
- stable
- devel


steps:
- uses: actions/checkout@v2

# Caching
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable

- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable

# Install Dependencies
- name: Install dependencies (Linux)
run: |
sudo apt-get update
sudo apt-get -qy install make build-essential cmake libncurses-dev ncurses-dev libbz2-dev lzma-dev liblzma-dev \
curl libssl-dev libtool autoconf automake libcurl4-openssl-dev zlib1g-dev
- uses: iffy/[email protected]
with:
version: ${{ matrix.nimversion }}

- name: Build and Test Linux executable
run: |
nimble build -y --verbose
ls -l bin/
bin/qax --version
bash test/all.sh
mv bin/qax bin/qax-linux
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: qax-linux
path: /home/runner/work/qax/qax/bin/qax-linux

0 comments on commit 0cd9416

Please sign in to comment.