Add secrets #2370
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: Windows Test | ||
on: | ||
push: | ||
jobs: | ||
Windows: | ||
strategy: | ||
fail-fast: false | ||
runs-on: windows-latest | ||
env: | ||
OS_NAME: windows | ||
PLATFORM_TARGET: native_mixed | ||
SSH_KEY: ${{ runner.temp }}/id_rsa | ||
Check failure on line 14 in .github/workflows/ci.yml GitHub Actions / Windows TestInvalid workflow file
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.8' | ||
- name: Install packages | ||
run: | | ||
choco.exe install pkgconfiglite ninja | ||
- name: Install python modules | ||
shell: bash | ||
run: | | ||
pip3 install meson pytest requests distro paramiko | ||
pip3 install --no-deps $GITHUB_WORKSPACE | ||
- name: Setup MSVC compiler | ||
uses: bus1/cabuild/action/msdevshell@v1 | ||
with: | ||
arch: x64 | ||
- name: secret | ||
shell: bash | ||
run: | | ||
echo "${{secrets.ssh_key}}" > $SSH_KEY | ||
- name: Ensure base deps | ||
run: | | ||
python .github\\scripts\\ensure_base_deps.py | ||
- name: print log | ||
shell: bash | ||
if: failure() | ||
run: | | ||
cd $HOME/BUILD_native_dyn/xapian-core-1.4.23 | ||
cat config.h | ||
cat meson-logs/meson-log.txt | ||
- name: Compile all deps | ||
run: | | ||
python .github\\scripts\\compile_all_deps.py | ||
- name: Upload failure logs | ||
shell: bash | ||
if: failure() | ||
run: $GITHUB_WORKSPACE/.github/scripts/upload_failure_logs.sh |