Skip to content

Commit 9f36775

Browse files
Merge pull request #67 from Roblox/arm64
Add support for arm64.
2 parents 6c144bb + f168be9 commit 9f36775

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Makefile.arm64

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
BINARY ?= containerd-driver
2+
ifndef $(GOLANG)
3+
GOLANG=$(shell which go)
4+
export GOLANG
5+
endif
6+
7+
export GOARCH=arm64
8+
export GO111MODULE=on
9+
export GOOS=linux
10+
11+
default: build
12+
13+
.PHONY: clean
14+
clean:
15+
rm -f $(BINARY)
16+
17+
.PHONY: build
18+
build:
19+
$(GOLANG) build -o $(BINARY) .
20+
21+
.PHONY: test
22+
test:
23+
./tests/run_tests.sh

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ $ cd nomad-driver-containerd
4141
$ make build (This will build your containerd-driver binary)
4242
```
4343

44+
If you want to compile for `arm64`, you can run:
45+
46+
```
47+
make -f Makefile.arm64
48+
```
49+
4450
## Screencast
4551
[![asciicast](https://asciinema.org/a/348173.svg)](https://asciinema.org/a/348173)
4652

0 commit comments

Comments
 (0)