Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/actions/setup-macos/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Setup ubuntu
description: Setup ubuntu

inputs:
packages:
description: Space-separated list of additional packages to install
required: false
default: 'cmake'

runs:
using: composite
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "18"
- name: Install additional packages
if: ${{ inputs.packages != ''}}
shell: bash
run: |
brew install ${{ inputs.packages }}
- name: Setup Python venv
shell: bash
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
deactivate
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH"
28 changes: 14 additions & 14 deletions .github/workflows/test_basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
examples_dry_run:
name: Dry Run (${{ matrix.target }})
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
strategy:
matrix:
target:
Expand All @@ -21,55 +21,55 @@ jobs:
- slothy.targets.aarch64.aarch64_big_experimental
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run examples
run: |
python3 example.py --dry-run --only-target=${{ matrix.target }}
tutorial:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run tutorial
run: |
(cd tutorial && ./tutorial_all.sh)
examples_basic:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run examples
run: |
python3 example.py --examples simple0,simple1,simple0_loop,simple1_loop
examples_ntt_kyber_dilithium_helium_core:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run examples
run: |
python3 example.py --examples ntt_kyber_1_23_45_67_m55,ntt_dilithium_12_34_56_78_m55 --timeout=300
examples_ntt_kyber_dilithium_neon_core:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run examples
run: |
python3 example.py --examples ntt_kyber_123_4567_a55,ntt_dilithium_123_45678_a55 --timeout=300
sqmag:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run examples
run: |
(cd paper/scripts && NO_LOG=Y ./slothy_sqmag.sh)
fft:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-ubuntu
- uses: ./.github/actions/setup-macos
- name: Run examples
run: |
(cd paper/scripts && NO_LOG=Y ./slothy_fft.sh)
Loading