Skip to content

Commit

Permalink
Run build_linux in docker using an older glibc (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Mar 30, 2023
1 parent a9cffb8 commit 718d5a8
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/vector-im/element-desktop-dockerbuild:t3chguy-dockerbuild
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3

Expand All @@ -34,20 +39,12 @@ jobs:
path: |
./.hak
- name: Install Rust
if: steps.cache.outputs.cache-hit != 'true'
uses: actions-rs/toolchain@v1
with:
default: true
toolchain: stable

- name: Install libsqlcipher-dev
if: steps.cache.outputs.cache-hit != 'true' && inputs.sqlcipher == 'system'
run: sudo apt-get install -y libsqlcipher-dev

- uses: actions/setup-node@v3
with:
cache: "yarn"
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0

# Does not need branch matching as only analyses this layer
- name: Install Deps
Expand All @@ -71,7 +68,7 @@ jobs:
if [ -f changelog.Debian ]; then
echo "config-args=--deb-changelog changelog.Debian" >> $GITHUB_OUTPUT
fi
cp "$DIR/control.template" debcontrol
VERSION=${INPUT_VERSION:-$(cat package.json | jq -r .version)}
echo "Version: $VERSION" >> debcontrol
Expand All @@ -81,7 +78,7 @@ jobs:

- name: Build App
run: |
scripts/generate-builder-config.ts \
npx ts-node scripts/generate-builder-config.ts \
${{ steps.nightly.outputs.config-args }} \
${{ steps.debian.outputs.config-args }} \
--deb-custom-control=debcontrol
Expand Down

0 comments on commit 718d5a8

Please sign in to comment.