1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 13:06:59 +03:00

Build Linux binaries on GitHub Actions

This commit is contained in:
Rui Ueyama 2023-03-05 14:36:21 +08:00
parent 6d2dbd42a6
commit c4722fe5ae
2 changed files with 16 additions and 1 deletions

15
.github/workflows/linux-packages.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: linux-packages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: build
run: ./dist.sh x86_64
- name: upload
uses: actions/upload-artifact@v3
with:
path: mold-*-linux.tar.gz

View File

@ -27,7 +27,7 @@ version=$(sed -n 's/^project(mold VERSION \(.*\))/\1/p' $(dirname $0)/CMakeLists
dest=mold-$version-$arch-linux
set -e -x
docker run --platform linux/$arch -it --rm -v "$(pwd):/mold" \
docker run --platform linux/$arch -i --rm -v "$(pwd):/mold" \
-e "OWNER=$(id -u):$(id -g)" rui314/mold-builder:latest \
bash -c "mkdir /tmp/build &&
cd /tmp/build &&