Skip to content

Commit

Permalink
Update CI [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfkarren committed Dec 23, 2020
1 parent 1d0a779 commit e6c2347
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
with:
name: selene-windows
path: ./target/release/selene.exe
build_windows_light:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build (Lightweight)
run: |
cd selene
Expand Down Expand Up @@ -49,6 +53,12 @@ jobs:
with:
name: selene-macos
path: ./target/release/selene
build_mac_light:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Build (Lightweight)
run: |
source $HOME/.cargo/env
Expand All @@ -74,6 +84,10 @@ jobs:
with:
name: selene-linux
path: ./target/release/selene
build_linux_light:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build (Lightweight)
run: |
cd selene
Expand All @@ -85,8 +99,8 @@ jobs:
path: ./target/release/selene
release:
runs-on: ubuntu-latest
needs: ['build_windows', 'build_mac', 'build_linux']
if: contains(github.ref, 'refs/tags/v')
needs: ['build_windows_light', 'build_windows', 'build_mac', 'build_mac_light', 'build_linux', 'build_linux_light']
if: contains(github.event.head_commit.message, '[release]')
steps:
- uses: actions/checkout@v1
- name: Download artifacts
Expand Down Expand Up @@ -119,7 +133,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
tag_name: ${{ env.VERSION }}
release_name: ${{ env.CHANGELOG_ENTRY }}
body: ${{ env.CHANGELOG_DESCRIPTION }}
- name: Upload Linux build
Expand Down

0 comments on commit e6c2347

Please sign in to comment.