Skip to content

Commit

Permalink
refactor: improve setup debian
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Jun 21, 2024
1 parent c75726b commit ebdfe5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Toolchain
run: ./scripts/setup-debian.sh ${{ matrix.build.variant }}
run: sudo ./scripts/setup-debian.sh ${{ matrix.build.variant }}
if: runner.os == 'Linux'

- name: Build for ${{ matrix.build.name }}
Expand Down
9 changes: 6 additions & 3 deletions scripts/setup-debian.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
set -xeuo pipefail
sudo apt-get update
sudo apt-get install -y build-essential libpcsclite-dev libcurl4-openssl-dev zip
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical

apt-get -qq -o=Dpkg::Use-Pty=0 update
apt-get -qq -o=Dpkg::Use-Pty=0 install -y build-essential libpcsclite-dev libcurl4-openssl-dev zip

case "${1:-}" in
mingw)
sudo apt-get install gcc-mingw-w64 g++-mingw-w64
apt-get -qq -o=Dpkg::Use-Pty=0 install gcc-mingw-w64 g++-mingw-w64
;;
esac

0 comments on commit ebdfe5d

Please sign in to comment.