Skip to content

Commit e04b2e2

Browse files
committed
WIP test staging and master builds
1 parent 2564f43 commit e04b2e2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ubuntu-latest]
15+
os: [windows-latest, macos-latest, ubuntu-latest]
1616
rust:
1717
- stable
1818
- beta
@@ -54,7 +54,7 @@ jobs:
5454
- name: Publish Release
5555
uses: actions-rs/cargo@v1
5656
with:
57-
command: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
57+
command: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} --dry-run
5858

5959
release-staging:
6060
if: github.ref == 'refs/heads/staging'
@@ -68,11 +68,11 @@ jobs:
6868
uses: thebongy/version-check@v1
6969
with:
7070
file: Cargo.toml
71-
tagFormat: v${version}
71+
tagFormat: v${version}-beta
7272
id: version_check
7373

7474
- name: Publish Release
7575
uses: actions-rs/cargo@v1
7676
with:
77-
command: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
77+
command: sed -i -e 's/${version}/${version}-beta/g' /tmp/file.txt && cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} --allow-dirty --dry-run
7878

.github/workflows/pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: thebongy/version-check@v1
2020
with:
2121
file: Cargo.toml
22-
tagFormat: v${version}
22+
tagFormat: v${version}-beta
2323
id: version_check_staging
2424

2525
- name: Check Release Version (master)
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ${{ matrix.os }}
3434
strategy:
3535
matrix:
36-
os: [ubuntu-latest]
36+
os: [windows-latest, macos-latest, ubuntu-latest]
3737
rust:
3838
- stable
3939
- beta
@@ -60,6 +60,7 @@ jobs:
6060
uses: actions-rs/cargo@v1
6161
with:
6262
command: test
63+
args: --release --all
6364

6465
- name: Cargo fmt
6566
uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)