Skip to content

Commit a4ae7f2

Browse files
committed
Add Linux CI builds
1 parent 588815b commit a4ae7f2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/build_n_test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ jobs:
2727
with:
2828
name: release_zips_win32
2929
path: "./*.zip"
30+
build_linux_amd64:
31+
runs-on: ubuntu-20.04
32+
steps:
33+
- name: Install musl-gcc
34+
run: "sudo apt-get install musl-tools"
35+
- uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
- run: make zip CROSS=linux-musl
39+
- name: Rename ZIPs
40+
run: |
41+
mv flexptools.zip "flexptools-linux-amd64-`git describe --tags --always`.zip"
42+
mv spin2cpp.zip "spin2cpp-linux-amd64-`git describe --tags --always`.zip"
43+
- uses: actions/upload-artifact@v3
44+
with:
45+
name: release_zips_linux_amd64
46+
path: "./*.zip"
3047
test_offline:
3148
runs-on: ubuntu-20.04
3249
steps:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ else ifeq ($(OS),Windows_NT)
7272
CC=gcc
7373
EXT=.exe
7474
BUILD=./build
75+
else ifeq ($(CROSS),linux-musl)
76+
CC=musl-gcc -static -fno-pie
77+
EXT=
78+
BUILD=./build
7579
else
7680
CC=gcc
7781
EXT=

0 commit comments

Comments
 (0)