Skip to content

v0.2.0 - Activate on all rooms #11

v0.2.0 - Activate on all rooms

v0.2.0 - Activate on all rooms #11

Workflow file for this run

on:
release:
types: [created]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
steps:
- uses: actions/checkout@v4 # Ensure the correct version is used
- name: Set Perl environment variables
if: runner.os == 'Windows'
shell: pwsh
run: |
$perlPath = (Get-Command perl.exe).Path
echo "PERL=$perlPath" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
echo "OPENSSL_SRC_PERL=$perlPath" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
- name: Install cross-compilation tools
if: startsWith(matrix.os, 'ubuntu')
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- name: Build and Upload Binary
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: dracoon-activate-virus-protection
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
tar: unix
zip: windows
include: LICENSE,README.md,config.example.yml