Skip to content

Import Web Assembly support from snapchat's djinni fork #340

Import Web Assembly support from snapchat's djinni fork

Import Web Assembly support from snapchat's djinni fork #340

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Caching dependencies
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2
key: scala-build-deps
- name: Building
run: sbt assembly
- uses: actions/upload-artifact@v2
with:
name: djinni-generator
path: target/bin/djinni
formatCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Caching dependencies
uses: actions/cache@v2
with:
path: ~/.sbt
key: scala-fmt-deps
- name: "Format check generator"
run: sbt scalafmtCheck
- name: "Format check integration test"
run: sbt it:scalafmtCheck
it:
runs-on: ubuntu-latest
needs: [build, formatCheck]
steps:
- uses: actions/checkout@v2
- name: Caching dependencies
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2
key: scala-build-deps
- uses: actions/download-artifact@v2
with:
name: djinni-generator
path: target/bin
- name: Restoring file permissions of artifact
run: chmod u+x target/bin/djinni
- name: Running integration-tests
run: sbt IntegrationTest/test
publishPreRelease:
runs-on: ubuntu-latest
needs: [it]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v2
with:
name: djinni-generator
path: target/bin
- name: Restoring file permissions of artifact
run: chmod u+x target/bin/djinni
- uses: "marvinpinto/action-automatic-releases@latest"
with:
title: "Latest development build"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: current-latest
files: |
target/bin/djinni