Skip to content

Use less commands in some runners #263

Use less commands in some runners

Use less commands in some runners #263

Workflow file for this run

name: x86 builds
on: push
env:
BUILD_TYPE: Release
jobs:
build-anisette-server-x86_64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-1.34.0
- name: Install dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get update && sudo apt-get install -y libz-dev elfutils
- name: Build
run: dub build :anisette-server -b release -c "static"
- name: Rename
run: mv "${{github.workspace}}/bin/provision_anisette-server" "${{github.workspace}}/bin/anisette-server-x86_64"
- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "${{github.workspace}}/bin/anisette-server-x86_64.dbg" "${{github.workspace}}/bin/anisette-server-x86_64"
- uses: actions/upload-artifact@v3
with:
name: anisette-server-x86_64
path: |
${{github.workspace}}/bin/anisette-server-x86_64
${{github.workspace}}/bin/anisette-server-x86_64.dbg
build-anisette-server-i686:
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common git gdc-13-i686-linux-gnu dub libz-dev elfutils
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: dub build :anisette-server -b release --compiler=i686-linux-gnu-gdc-13 -c "static"
- name: Rename
run: mv "bin/provision_anisette-server" "bin/anisette-server-i686"
- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "bin/anisette-server-i686.dbg" "bin/anisette-server-i686"
- uses: actions/upload-artifact@v3
with:
name: anisette-server-i686
path: |
bin/anisette-server-i686
bin/anisette-server-i686.dbg