Skip to content

Commit

Permalink
Merge 92fb89d into b53f77f
Browse files Browse the repository at this point in the history
  • Loading branch information
malor committed Apr 24, 2021
2 parents b53f77f + 92fb89d commit 1c7eab8
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build

on:
push:
branches: [ master ]
# TODO: remove this after testing
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1

defaults:
run:
shell: bash

jobs:
pre-release:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
rust-version:
- nightly

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
override: true

- uses: actions-rs/cargo@v1
with:
command: build
args: --release

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build ${{ matrix.os }}"
files: |
target/release/xsnippet-api*

0 comments on commit 1c7eab8

Please sign in to comment.