Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from snowplow/release/0.6.0
Browse files Browse the repository at this point in the history
Release/0.6.0
  • Loading branch information
jbeemster authored Feb 7, 2021
2 parents 7020147 + 2c8af2f commit 03b7a6b
Show file tree
Hide file tree
Showing 49 changed files with 522 additions and 352 deletions.
125 changes: 125 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: cd

on:
push:
tags:
- '*'

jobs:
ubuntu:
name: Compile Linux
strategy:
matrix:
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}

steps:
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: make test

- name: Extract tag version from ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Build
run: make zip
env:
PLATFORM: linux
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: factotum_${{ steps.get_version.outputs.VERSION }}_linux_x86_64.zip
path: build/compiled/factotum_${{ steps.get_version.outputs.VERSION }}_linux_x86_64.zip

macos:
name: Compile macOS
strategy:
matrix:
os: [macos-10.15]
runs-on: ${{ matrix.os }}

steps:
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-apple-darwin
default: true
override: true

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: make test

- name: Extract tag version from ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Build
run: make zip
env:
PLATFORM: darwin
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: factotum_${{ steps.get_version.outputs.VERSION }}_darwin_x86_64.zip
path: build/compiled/factotum_${{ steps.get_version.outputs.VERSION }}_darwin_x86_64.zip

release:
needs: ["ubuntu", "macos"]

name: Release
strategy:
matrix:
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}

steps:
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Extract tag version from ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- run: mkdir -p ./build/compiled

- uses: actions/download-artifact@v2
with:
name: factotum_${{ steps.get_version.outputs.VERSION }}_linux_x86_64.zip
path: build/compiled

- uses: actions/download-artifact@v2
with:
name: factotum_${{ steps.get_version.outputs.VERSION }}_darwin_x86_64.zip
path: build/compiled

- name: Upload release binaries
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./build/compiled/*"]'
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: ci

on:
push:
branches:
- '*'
- '*/*'
- '**'

jobs:
ubuntu:
name: Compile & Test
strategy:
matrix:
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}

steps:
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: make test

- name: Build
run: make debug

- uses: Swatinem/rust-cache@v1

macos:
name: Compile & Test
strategy:
matrix:
os: [macos-10.15]
runs-on: ${{ matrix.os }}

steps:
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-apple-darwin
default: true
override: true

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: make test

- name: Build
run: make debug

- uses: Swatinem/rust-cache@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ Cargo.lock
.factotum
.vagrant

# Project
build/
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .travis/build.sh

This file was deleted.

53 changes: 0 additions & 53 deletions .travis/deploy/deploy.factfile

This file was deleted.

61 changes: 0 additions & 61 deletions .travis/deploy/tasks/check_release.rb

This file was deleted.

7 changes: 0 additions & 7 deletions .travis/deploy/tasks/provision.sh

This file was deleted.

27 changes: 0 additions & 27 deletions .travis/deploy/tasks/release_config.yaml

This file was deleted.

Loading

0 comments on commit 03b7a6b

Please sign in to comment.