mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
H3 data for unit tests: Use encrypted zip
This is easier than splitting H3bitmap and encrypting each file separately
This commit is contained in:
parent
8800b361fd
commit
f78fe102ac
10
.github/workflows/github.yml
vendored
10
.github/workflows/github.yml
vendored
@ -213,14 +213,10 @@ jobs:
|
||||
env:
|
||||
HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
|
||||
run: |
|
||||
git clone https://github.com/Alexander-Wilms/encrypted_heroes_3_data
|
||||
if [ ! -f encrypted_heroes_3_data/HoMM3_data_encrypted/Data/H3sprite.lod.enc ]; then echo "Failed to clone Heroes 3 data" && exit 1; fi
|
||||
cd encrypted_heroes_3_data && ./crypt.py -p $HEROES_3_DATA_PASSWORD -d
|
||||
tree
|
||||
# fail CI stage if something went wrong
|
||||
if [ ! -f HoMM3_data_decrypted/Data/H3bitmap.lod ]; then echo "Failed to decrypt Heroes 3 data" && exit 1; fi
|
||||
wget --progress=dot:giga https://github.com/Alexander-Wilms/encrypted_heroes_3_data/releases/download/h3_assets/h3_assets.zip
|
||||
7za x h3_assets.zip -p$HEROES_3_DATA_PASSWORD
|
||||
mkdir -p ~/.local/share/vcmi/
|
||||
mv HoMM3_data_decrypted/* ~/.local/share/vcmi/
|
||||
mv h3_assets/* ~/.local/share/vcmi/
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
if: "${{ matrix.conan_profile != '' }}"
|
||||
|
Loading…
Reference in New Issue
Block a user