-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |