Skip to content

Setup actions

Setup actions #5

Workflow file for this run

on:
push:
pull_request:
jobs:
build:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
include:
# - os: macos-latest
# target: x86_64-apple-darwin
# suffix: ""
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
suffix: ""
- os: windows-latest
target: x86_64-pc-windows-msvc
suffix: .exe
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: sudo apt-get install -y ocl-icd-opencl-dev
if: matrix.os == 'ubuntu-latest'
- run: cargo build --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v3
with:
name: yggdrasil-vanity-${{ matrix.target }}
path: ./target/${{ matrix.target }}/release/yggdrasil-vanity${{ matrix.suffix }}