Skip to content

Commit eae7d1b

Browse files
committedJul 23, 2023
workflow: dont build binaries since they require env
1 parent eaeee0a commit eae7d1b

File tree

1 file changed

+73
-73
lines changed

1 file changed

+73
-73
lines changed
 

‎.github/workflows/release.yml

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -32,76 +32,76 @@ jobs:
3232
tag_name: ${{ github.ref }}
3333
name: ${{ steps.get_version.outputs.version }} 🎉
3434
body: ${{ steps.github_release.outputs.changelog }}
35-
create-binaries:
36-
name: release ${{ matrix.target }}
37-
runs-on: ${{ matrix.os }}
38-
strategy:
39-
fail-fast: false
40-
matrix:
41-
include:
42-
- target: x86_64-pc-windows-msvc
43-
archive: zip
44-
os: windows-latest
45-
bin: .exe
46-
ext: .zip
47-
- target: x86_64-unknown-linux-gnu
48-
archive: tar
49-
ext: .tar.gz
50-
os: ubuntu-latest
51-
bin: ""
52-
- target: x86_64-apple-darwin
53-
archive: zip
54-
ext: .zip
55-
os: macos-latest
56-
bin: ""
57-
steps:
58-
- uses: actions/checkout@v3
59-
with:
60-
fetch-depth: 0
61-
- name: Install nightly
62-
uses: actions-rs/toolchain@v1
63-
with:
64-
toolchain: nightly
65-
override: true
66-
profile: minimal
67-
target: ${{ matrix.target }}
68-
- name: Set up cargo cache
69-
uses: actions/cache@v3
70-
continue-on-error: false
71-
with:
72-
path: |
73-
~/.cargo/bin/
74-
~/.cargo/registry/index/
75-
~/.cargo/registry/cache/
76-
~/.cargo/git/db/
77-
target/
78-
key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
79-
restore-keys: ${{ matrix.target }}-cargo-
80-
- uses: ikalnytskyi/action-setup-postgres@v4
81-
if: matrix.target == 'x86_64-pc-windows-msvc'
82-
- name: Build in release mode
83-
uses: actions-rs/cargo@v1
84-
with:
85-
command: build
86-
args: --release
87-
- name: Move release files
88-
run: |
89-
mkdir release
90-
mv target/release/statpixel${{ matrix.bin }} release/statpixel${{ matrix.bin }}
91-
cp README.md release/README.md
92-
cp LICENSE release/LICENSE
93-
- name: Archive release
94-
uses: thedoctor0/zip-release@main
95-
with:
96-
type: ${{ matrix.archive }}
97-
filename: release${{ matrix.ext }}
98-
directory: release
99-
path: "*"
100-
- name: Upload binaries to release
101-
uses: svenstaro/upload-release-action@v2
102-
with:
103-
repo_token: ${{ secrets.GITHUB_TOKEN }}
104-
file: release/release${{ matrix.ext }}
105-
asset_name: ${{ matrix.target }}${{ matrix.ext }}
106-
tag: ${{ github.ref }}
107-
overwrite: false
35+
# create-binaries:
36+
# name: release ${{ matrix.target }}
37+
# runs-on: ${{ matrix.os }}
38+
# strategy:
39+
# fail-fast: false
40+
# matrix:
41+
# include:
42+
# - target: x86_64-pc-windows-msvc
43+
# archive: zip
44+
# os: windows-latest
45+
# bin: .exe
46+
# ext: .zip
47+
# - target: x86_64-unknown-linux-gnu
48+
# archive: tar
49+
# ext: .tar.gz
50+
# os: ubuntu-latest
51+
# bin: ""
52+
# - target: x86_64-apple-darwin
53+
# archive: zip
54+
# ext: .zip
55+
# os: macos-latest
56+
# bin: ""
57+
# steps:
58+
# - uses: actions/checkout@v3
59+
# with:
60+
# fetch-depth: 0
61+
# - name: Install nightly
62+
# uses: actions-rs/toolchain@v1
63+
# with:
64+
# toolchain: nightly
65+
# override: true
66+
# profile: minimal
67+
# target: ${{ matrix.target }}
68+
# - name: Set up cargo cache
69+
# uses: actions/cache@v3
70+
# continue-on-error: false
71+
# with:
72+
# path: |
73+
# ~/.cargo/bin/
74+
# ~/.cargo/registry/index/
75+
# ~/.cargo/registry/cache/
76+
# ~/.cargo/git/db/
77+
# target/
78+
# key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
79+
# restore-keys: ${{ matrix.target }}-cargo-
80+
# - uses: ikalnytskyi/action-setup-postgres@v4
81+
# if: matrix.target == 'x86_64-pc-windows-msvc'
82+
# - name: Build in release mode
83+
# uses: actions-rs/cargo@v1
84+
# with:
85+
# command: build
86+
# args: --release
87+
# - name: Move release files
88+
# run: |
89+
# mkdir release
90+
# mv target/release/statpixel${{ matrix.bin }} release/statpixel${{ matrix.bin }}
91+
# cp README.md release/README.md
92+
# cp LICENSE release/LICENSE
93+
# - name: Archive release
94+
# uses: thedoctor0/zip-release@main
95+
# with:
96+
# type: ${{ matrix.archive }}
97+
# filename: release${{ matrix.ext }}
98+
# directory: release
99+
# path: "*"
100+
# - name: Upload binaries to release
101+
# uses: svenstaro/upload-release-action@v2
102+
# with:
103+
# repo_token: ${{ secrets.GITHUB_TOKEN }}
104+
# file: release/release${{ matrix.ext }}
105+
# asset_name: ${{ matrix.target }}${{ matrix.ext }}
106+
# tag: ${{ github.ref }}
107+
# overwrite: false

0 commit comments

Comments
 (0)