Skip to content

Commit

Permalink
feat: more CI fun (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
msalib authored Dec 30, 2021
1 parent b43afa4 commit a2c69ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Release

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always
Expand All @@ -23,7 +22,6 @@ jobs:
# bump the version and make a tag.
BumpVersion:
runs-on: ubuntu-latest
#if: "startsWith(github.ref, 'refs/tags/')"
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v2
Expand All @@ -48,6 +46,7 @@ jobs:
# anyway so there's no point to run tests a third time.
BuildLinux:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: [ BumpVersion ]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -86,6 +85,7 @@ jobs:

BuildWindows:
runs-on: windows-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: [ BumpVersion ]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -116,6 +116,7 @@ jobs:

BuildMacOS:
runs-on: macos-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: [ BumpVersion ]
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit a2c69ab

Please sign in to comment.