Skip to content

Merge pull request #232 from SamTV12345/feature/tests #43

Merge pull request #232 from SamTV12345/feature/tests

Merge pull request #232 from SamTV12345/feature/tests #43

Workflow file for this run

name: Rust
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build
env:
NODE_OPTIONS: --max-old-space-size=32768
run: |
cd ui
npm install
npm run build-github
cd ..
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --all --release && strip target/release/podfetch && mv target/release/podfetch target/release/podfetch_amd64
- name: Copy to root
run: cp target/release/podfetch_amd64 .
- name: zip
run: zip -r podfetch-linux.zip podfetch_amd64 db static migrations LICENSE README.md build.rs
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
podfetch-linux.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-win:
runs-on: windows-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build
env:
NODE_OPTIONS: --max-old-space-size=32768
run: |
cd ui
npm install
npm run build-github
cd ..
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --all --release
- name: Copy to root
run: cp target/release/podfetch.exe .
- name: Zip
run: Compress-Archive -Path podfetch.exe,db,static,migrations,LICENSE,README.md,build.rs -DestinationPath podfetch-win.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
podfetch-win.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-mac:
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build
env:
NODE_OPTIONS: --max-old-space-size=32768
run: |
cd ui
npm install
npm run build-github
cd ..
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-apple-darwin
default: true
override: true
- name: Build for mac
run: cargo build --all --release && strip target/release/podfetch && mv target/release/podfetch target/release/podfetch_darwin
- name: Copy to root
run: cp target/release/podfetch_darwin .
- name: Zip
run: zip -r podfetch-apple.zip podfetch_darwin db static migrations LICENSE README.md build.rs
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
podfetch-apple.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}