Skip to content

main.rs: add show local ip #4

main.rs: add show local ip

main.rs: add show local ip #4

Workflow file for this run

name: Build for Windows MSVC
on:
push:
branches:
- master
release:
types: [created]
jobs:
test:
runs-on: windows-latest
name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }})
env:
CFG_RELEASE_CHANNEL: ${{ matrix.cfg_release_channel }}
strategy:
# https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
# There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
# In order to prevent overusing too much of that 60 limit, we throttle the
# number of rustfmt jobs that will run concurrently.
max-parallel: 2
fail-fast: false
matrix:
target: [
x86_64-pc-windows-msvc,
]
cfg_release_channel: [stable]
steps:
# The Windows runners have autocrlf enabled by default
# which causes failures for some of rustfmt's line-ending sensitive tests
- name: disable git eol translation
run: git config --global core.autocrlf false
- name: checkout
uses: actions/checkout@v3
# Run build
- name: Install Rustup using win.rustup.rs
run: |
# Disable the download progress bar which can cause perf issues
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
del rustup-init.exe
rustup target add ${{ matrix.target }}
shell: powershell
- name: Build and Test
shell: cmd
run: ci\build_and_test.bat
- name: Upload to Artifact
if: ${{ github.event_name != 'release' && success() }}
uses: actions/upload-artifact@v3
with:
path: D:\a\breed-enter-rust\breed-enter-rust\target\release\*.exe
- name: Upload images to Releases
if: ${{ github.event_name == 'release' && success() }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: D:\a\breed-enter-rust\breed-enter-rust\target\release\*.exe
tag: ${{ github.ref }}
overwrite: true
file_glob: true