2021-02-01 19:06:12 +03:00
|
|
|
name: release
|
2021-01-30 00:30:13 +03:00
|
|
|
|
2021-02-20 16:17:42 +03:00
|
|
|
on: [push, pull_request]
|
2021-01-30 00:30:13 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
2021-02-01 23:49:34 +03:00
|
|
|
- name: Environment
|
2021-02-01 23:57:36 +03:00
|
|
|
run: |
|
2021-02-01 23:49:34 +03:00
|
|
|
uname -a
|
2021-02-02 00:00:17 +03:00
|
|
|
cargo --version
|
2021-01-30 00:30:13 +03:00
|
|
|
- name: set Version
|
|
|
|
run: |
|
|
|
|
echo VERSION=$(grep '^version' packages/hurl/Cargo.toml | cut -f2 -d'"') >> $GITHUB_ENV
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
ci/man.sh
|
2021-02-20 16:17:42 +03:00
|
|
|
# Install libcurl dev so that hurl can be built dynamically with libcurl
|
|
|
|
sudo apt install libcurl4-openssl-dev
|
2021-01-30 00:30:13 +03:00
|
|
|
ci/release.sh
|
|
|
|
ci/create_tarball.sh linux
|
|
|
|
ci/deb.sh
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: release-linux-artifacts
|
|
|
|
path: target/upload/*
|
|
|
|
|
|
|
|
release-osx:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
2021-02-01 23:49:34 +03:00
|
|
|
- name: Environment
|
2021-02-01 23:57:36 +03:00
|
|
|
run: |
|
2021-02-01 23:49:34 +03:00
|
|
|
uname -a
|
|
|
|
cargo --version
|
2021-01-30 00:30:13 +03:00
|
|
|
- name: set Version
|
|
|
|
run: |
|
|
|
|
echo VERSION=$(grep '^version' packages/hurl/Cargo.toml | cut -f2 -d'"') >> $GITHUB_ENV
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
ci/man.sh
|
|
|
|
ci/release.sh
|
|
|
|
ci/create_tarball.sh osx
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: release-osx-artifacts
|
|
|
|
path: target/upload/*
|