Skip to content

Commit

Permalink
ci: 💚 I understand why people hate CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKLG committed May 21, 2023
1 parent 6a6eb1b commit 8be2eb6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- '*.*.*'
- "*.*.*"

env:
CARGO_TERM_COLOR: always
Expand All @@ -12,7 +12,7 @@ jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- name: Checkout Repo
uses: actions/checkout@v3

- name: Cache
Expand All @@ -27,7 +27,9 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build --verbose --release
run: |
export SENTRY_DSN=${{ vars.SENTRY_DSN }}
cargo build --verbose --release
- name: Strip
run: strip target/release/leybot
Expand All @@ -46,7 +48,7 @@ jobs:
# build_macos:
# runs-on: macos-latest
# steps:
# - name: Checkout Repo
# - name: Checkout Repo
# uses: actions/checkout@v3

# - name: Cache
Expand All @@ -62,7 +64,7 @@ jobs:

# - name: Build
# run: cargo build --verbose --release

# - name: Rename
# run: mv target/release/leybot target/release/leybot-darwin64

Expand All @@ -77,7 +79,7 @@ jobs:
# build_windows:
# runs-on: windows-latest
# steps:
# - name: Checkout Repo
# - name: Checkout Repo
# uses: actions/checkout@v3

# - name: Cache
Expand All @@ -101,6 +103,6 @@ jobs:
# uses: ncipollo/release-action@v1
# with:
# artifacts: "target/release/leybot-win64.exe"
# token: ${{ secrets.GITHUB_TOKEN }}
# token: ${{ secrets.GITHUB_TOKEN }}
# artifactErrorsFailBuild: true
# allowUpdates: true
# allowUpdates: true

0 comments on commit 8be2eb6

Please sign in to comment.