29 lines
888 B
YAML
29 lines
888 B
YAML
on: [push]
|
|
|
|
name: Continuous Releases
|
|
|
|
env:
|
|
TARGET_PLATFORM_WINDOWS: x86_64-pc-windows-gnu
|
|
TARGET_PLATFORM_MACOS: aarch64-apple-darwin
|
|
APT_PACKAGES: mingw-w64
|
|
|
|
jobs:
|
|
build_windows:
|
|
name: build (windows)
|
|
container:
|
|
image: tea.werats.gay/laurayka/rust-ci-img:0.5.0
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- run: echo "/root/.cargo/bin" >> $GITHUB_PATH
|
|
- run: cargo build --release --target "${{ env.TARGET_PLATFORM_WINDOWS }}"
|
|
- run: cargo build --release --target "${{ env.TARGET_PLATFORM_MACOS }}"
|
|
- uses: https://gitea.com/actions/gitea-release-action@main
|
|
env:
|
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
|
NODE_TLS_REJECT_UNAUTHORIZED: "false"
|
|
with:
|
|
tag_name: rc-${{ env.GITHUB_SHA }}
|
|
files: |-
|
|
target/*/release/dndcli* |