Skip to content

Commit 166b2e6

Browse files
committed
Fix release step.
1 parent a419518 commit 166b2e6

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/build.yaml

+6-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- uses: dtolnay/rust-toolchain@master
2323
with:
2424
toolchain: stable
25-
override: true
2625
- run: cargo check
2726

2827
fmt:
@@ -33,7 +32,6 @@ jobs:
3332
- uses: dtolnay/rust-toolchain@master
3433
with:
3534
toolchain: stable
36-
override: true
3735
- run: rustup component add rustfmt
3836
- run: cargo fmt --all -- --check
3937

@@ -44,9 +42,7 @@ jobs:
4442
- uses: actions/checkout@v3
4543
- uses: dtolnay/rust-toolchain@master
4644
with:
47-
profile: minimal
4845
toolchain: stable
49-
override: true
5046
- run: rustup component add clippy
5147
- run: cargo clippy -- -D warnings
5248

@@ -75,9 +71,7 @@ jobs:
7571
${{ matrix.target }}-cargo
7672
- uses: dtolnay/rust-toolchain@master
7773
with:
78-
profile: minimal
7974
toolchain: stable
80-
override: true
8175
targets: ${{ matrix.target }}
8276
- run: cargo test --target ${{ matrix.target }}
8377

@@ -110,9 +104,7 @@ jobs:
110104
${{ matrix.target }}-cargo
111105
- uses: dtolnay/rust-toolchain@master
112106
with:
113-
profile: minimal
114107
toolchain: stable
115-
override: true
116108
targets: ${{ matrix.target }}
117109
- run: cargo install cargo-edit
118110
- run: cargo set-version ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
@@ -134,14 +126,16 @@ jobs:
134126
- uses: actions/download-artifact@v2
135127
- name: Display structure of downloaded files
136128
run: ls -R
129+
- name: Prepare release packages
130+
run: |
131+
tar -cvzf fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
132+
tar -cvzf fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
133+
tar -cvzf fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
137134
- name: Create release
138135
uses: softprops/action-gh-release@v1
139136
with:
140137
tag_name: ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
141138
draft: true
142139
prerelease: false
143-
files: |
144-
fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
145-
fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
146-
fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
140+
files: fimbl-*.tgz
147141
generate_release_notes: true

0 commit comments

Comments
 (0)