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:
parent
6d2dbd42a6
commit
c4722fe5ae
15
.github/workflows/linux-packages.yml
vendored
Normal file
15
.github/workflows/linux-packages.yml
vendored
Normal 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
|
2
dist.sh
2
dist.sh
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user