2024-04-18 20:06:24 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- target: x86_64-linux
|
|
|
|
os: ubuntu-latest
|
2024-04-18 20:29:10 +00:00
|
|
|
- target: aarch64-linux
|
2024-04-18 20:06:24 +00:00
|
|
|
os: ubuntu-latest
|
|
|
|
- target: x86_64-windows
|
|
|
|
os: ubuntu-latest
|
2024-04-18 20:42:11 +00:00
|
|
|
- target: x86_64-darwin
|
2024-04-18 20:06:24 +00:00
|
|
|
os: macos-latest
|
2024-04-19 20:11:59 +00:00
|
|
|
# FIXME: build broken
|
|
|
|
# - target: aarch64-darwin
|
|
|
|
# os: macos-latest
|
2024-04-18 20:06:24 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Nix
|
|
|
|
uses: cachix/install-nix-action@v24
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-23.11
|
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
|
|
|
name: soywod
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Run app
|
|
|
|
run: |
|
2024-04-19 07:56:25 +00:00
|
|
|
nix build -L .#${{ matrix.target }}
|
2024-04-18 20:29:10 +00:00
|
|
|
nix run -L .#${{ matrix.target }} -- --version
|
2024-04-19 09:57:59 +00:00
|
|
|
ls -R result
|