Skip to content

Commit

Permalink
Update github-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdttttt committed Apr 17, 2023
1 parent 59c3d3a commit cfa53d8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,15 @@ jobs:
cargo $@
EOF
sudo chmod +x /usr/bin/cross
- name: Install Cross
if: ${{ matrix.target != 'x86_64-unknown-linux-musl' }}
run: cargo install cross
- name: Build
run: |
export LOCALE=${file%.toml}
cross build --release --target=${{ matrix.target }}
cargo build --release --target=${{ matrix.target }}
mv ./target/${{ matrix.target }}/release/ksbot ksbot-$LOCALE-${{ matrix.target }}
cross build --release --target=${{ matrix.target }} --no-default-features --features=native-tls
cargo build --release --target=${{ matrix.target }} --no-default-features --features=native-tls
mv ./target/${{ matrix.target }}/release/ksbot ksbot-$LOCALE-${{ matrix.target }}-openssl
- name: Upload Release Asset
id: upload-release-asset
uses: iovxw/upload-release-asset@v1
Expand Down

0 comments on commit cfa53d8

Please sign in to comment.