feat: validate url as a Lemmy instance before making API requests #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Set File Permissions | |
run: chmod 755 target/release/lasim | |
- name: Tar Build Output | |
run: tar -cvf lasim_ubuntu.tar -C target/release/ lasim | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lasim_ubuntu | |
path: lasim_ubuntu.tar | |
build_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lasim_windows | |
path: target/release/lasim.exe | |
build_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Set File Permissions | |
run: chmod 755 target/release/lasim | |
- name: Tar Build Output | |
run: tar -cvf lasim_macos.tar -C target/release/ lasim | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lasim_macos | |
path: lasim_macos.tar |