-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
651 additions
and
193 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
key: get-cargo-minimal | ||
value: | ||
- name: Get cargo stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Cache cargo | ||
uses: actions/cache@v1 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
key: job-cratesio-publish | ||
value: | ||
needs: | ||
- project-matrixes | ||
- versio-release | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: ${{fromJson(needs.project-matrixes.outputs.cargo-matrix)}} | ||
if: SNIPPET_not-skip-ci | ||
defaults: | ||
run: | ||
working-directory: ${{ matrix.root }} | ||
steps: | ||
- name: Checkout release | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- SNIPPET_get-cargo | ||
- name: Login to crates.io | ||
run: cargo login ${CRATES_IO_TOKEN} | ||
env: | ||
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} | ||
- name: Publish to crates.io | ||
run: cargo publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
key: job-project-matrixes | ||
value: | ||
runs-on: ubuntu-latest | ||
if: SNIPPET_not-skip-ci | ||
outputs: | ||
cargo-matrix: ${{ steps.find-cargo-matrix.outputs.matrix }} | ||
all-matrix: ${{ steps.find-all-matrix.outputs.matrix }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- SNIPPET_matrix | ||
- name: Get versio | ||
uses: chaaz/versio-actions/install@v1 | ||
- name: Find cargo matrix | ||
id: find-cargo-matrix | ||
run: 'echo "::set-output name=matrix::{\"include\":$(versio -l none info -l cargo -R -N)}"' | ||
- name: Find all matrix | ||
id: find-all-matrix | ||
run: 'echo "::set-output name=matrix::{\"include\":$(versio -l none info -a -R -N)}"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
key: job-versio-checks | ||
value: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
if: SNIPPET_not-skip-ci | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- SNIPPET_check-versio | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Get versio | ||
uses: chaaz/versio-actions/install@v1 | ||
- name: Fetch history | ||
run: git fetch --unshallow | ||
- name: Check projects | ||
run: versio check | ||
- name: Output plan | ||
run: versio plan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
key: job-versio-release | ||
value: | ||
needs: | ||
- cargo-checks | ||
- versio-checks | ||
runs-on: ubuntu-latest | ||
if: SNIPPET_not-skip-ci | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Get versio | ||
uses: chaaz/versio-actions/install@v1 | ||
- SNIPPET_get-cargo-minimal | ||
- name: Fetch history | ||
run: git fetch --unshallow | ||
- name: Generate release | ||
run: versio release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
key: not-skip-ci | ||
value: "!contains(github.event.head_commit.message, 'skip ci')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/target | ||
TODO* | ||
/.versio-paused | ||
/.versio-paused | ||
/.versio-paused |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.