Build macOS target too
@@ -3,14 +3,30 @@ name: CI
on: [push, pull_request]
jobs:
- build_compiler:
+ rustfmt:
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v1
- run: rustup component add rustfmt
- run: cd gleam && cargo fmt -- --check
+
+ build_compiler_linux:
+ needs: rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
- run: cd gleam && cargo test
- run: cd gleam && cargo build --release
- run: gleam/target/release/gleam --version
- run: gleam/target/release/gleam build gleam_stdlib
+
+ build_compiler_macos:
+ needs: rustfmt
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v1
+ - run: curl https://sh.rustup.rs -sSf | sh -s -- -y
+ - run: cd gleam && $HOME/.cargo/bin/cargo test
+ - run: cd gleam && $HOME/.cargo/bin/cargo build --release
+ - run: gleam/target/release/gleam --version
+ - run: gleam/target/release/gleam build gleam_stdlib
