Skip to content

Add CI/CD

Add CI/CD #1

Workflow file for this run

name: Build
on:
push:
branches:
- trunk
jobs:
build:
name: Build - ${{ matrix.platform.release_for }}
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
platform:
- release_for: ARM64 Linux
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
bin: wiki-extractor
name: wiki-extractor-gnu-linux-aarch64
- release_for: 32x MSVC
os: windows-latest
target: i686-pc-windows-msvc
bin: wiki-extractor.exe
name: wiki-extractor-windows-i686.exe
- release_for: 32x Linux
os: ubuntu-latest
target: i686-unknown-linux-gnu
bin: wiki-extractor
name: wiki-extractor-gnu-linux-i686
- release_for: 64x macOS
os: macos-latest
target: x86_64-apple-darwin
bin: wiki-extractor
name: wiki-extractor-darwin-x86_64
- release_for: 64x MSVC
os: windows-latest
target: x86_64-pc-windows-msvc
bin: wiki-extractor.exe
name: wiki-extractor-windows-x86_64.exe
- release_for: 64x Linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: wiki-extractor
name: wiki-extractor-gnu-linux-x86_64
- release_for: 64x FreeBSD
os: ubuntu-latest
target: x86_64-unknown-freebsd
bin: wiki-extractor
name: wiki-extractor-freebsd-x86_64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: clechasseur/rs-cargo@v2
with:
command: build
args: --release --all-features
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.name }}
path: target/release/${{ matrix.platform.bin }}