Skip to content

Commit

Permalink
Set up GitHub Actions (#17)
Browse files Browse the repository at this point in the history
* Set up GitHub Actions

* Update rust.yml
  • Loading branch information
jez authored Feb 25, 2021
1 parent d8fa8d8 commit 85b5fb0
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- name: CI Setup
run: ./tools/scripts/ci-setup.sh
- name: Bazel help
run: ./bazel --help
- name: Build and test with Bazel
run: ./bazel test --test_output=errors //test

# TODO(jez) Releases
# before_deploy:
# # We use cargo for the release, because I couldn't figure out how to tell
# # rules_rust to pass `-C lto=true` to all dependencies.
# - cargo install --path .
# - cd "$HOME/.cargo/bin" && strip ./as-tree
# - cd "$HOME/.cargo/bin" && zip "as-tree-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip" ./as-tree

# deploy:
# provider: releases
# api_key:
# secure: BnKdnETj/m+MgWkeMWcw5geKD0+gadJPCYBVj8eSW6WCjwHTqfAhasjSRNGdR4KbvNwAYfl2b12AMsdWci5lR97TmVZB7SyNnSwpilQM3kEiGUGv3BaTnZ6MNe2rcmcTNSKcQ1/ou8vBXwVeeH2aSlhLASW5kpjnBu9cz7vbuuuWsV5faXD1WPlxI+zGjwBtasBk+hcW9CnMvXYoklosRPk1dTg6Y571d6xcIPJ4C8hjLWCLY984YPluZNkqmOUhGmQThkElQfzbtl2ABcpGkINDyjFM30D1N47Ccu7FIsmgtmspHn3RisEFyCw/68qUGO39i9v0MELCx/Zxccj4F4a37FAOXjjRXFQC8HsVITg3cr5utPddpiGl3e9dNa7lKzJqYEn6OOwfUOHWpL1ZrDmjYwHSNj6ii/O66DdqJ8UE/PvxraA2GUKztro4PmDnj/dq05NdK/CIFSCEdJwZEOBdgHAdhSVLC1Y6wrPyyHGD/4doK5HqdfXGCVDI4NYLFySJ9Z+mopPXKsFlFd79OPFtvaHsjXvxvYUAABtxM62CqfRhJs1XjHs9yPuW6h9DDq7bY+jxj9EwkX9vmhntpkzmbDWAHDHnb7Rzhk9iS9XEKG3rlJGx8F/O1FwQKUoOhUz1mJBiiChENNfIJXLLLkPvC/wgEfD7vCF9KAKK+Is=
# file: "$HOME/.cargo/bin/as-tree-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.zip"
# on:
# tags: true
# repo: jez/as-tree

0 comments on commit 85b5fb0

Please sign in to comment.