Skip to content

Commit

Permalink
use github workflows for CI (#190)
Browse files Browse the repository at this point in the history
* use github workflows for CI

Setup GitHub Workflows CI.
Remove older travis and Appveyor configurations.

* escape ~ character in Windows temp dir path

* remove now unnecessary REQUIRE file

* bump patch version in anticipation of tagging
  • Loading branch information
tanmaykm authored Dec 1, 2021
1 parent 4f1f412 commit bae7008
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 63 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI
on:
push:
branches: [master]
tags: ["*"]
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.3'
- '1' # automatically expands to the latest stable 1.x release of Julia
- nightly
os:
- ubuntu-latest
arch:
- x64
- x86
include:
# test macOS and Windows with latest Julia only
- os: macOS-latest
arch: x64
version: 1
- os: windows-latest
arch: x64
version: 1
- os: windows-latest
arch: x86
version: 1
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "3349acd9-ac6a-5e09-bcdb-63829b23a429"
keywords = ["protobuf", "protoc"]
license = "MIT"
desc = "Julia protobuf implementation"
version = "0.11.3"
version = "0.11.4"

[deps]
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ProtoBuf.jl

[![Build Status](https://travis-ci.org/JuliaIO/ProtoBuf.jl.png)](https://travis-ci.org/JuliaIO/ProtoBuf.jl)
[![Build Status](https://github.com/JuliaIO/ProtoBuf.jl/workflows/CI/badge.svg)](https://github.com/JuliaIO/ProtoBuf.jl/actions?query=workflow%3ACI+branch%3Amaster)

[![Coverage Status](https://coveralls.io/repos/github/JuliaIO/ProtoBuf.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaIO/ProtoBuf.jl?branch=master)
[![codecov.io](http://codecov.io/github/JuliaIO/ProtoBuf.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaIO/ProtoBuf.jl?branch=master)

[**Protocol buffers**](https://developers.google.com/protocol-buffers/docs/overview) are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more.

Expand Down
1 change: 0 additions & 1 deletion REQUIRE

This file was deleted.

43 changes: 0 additions & 43 deletions appveyor.yml

This file was deleted.

8 changes: 6 additions & 2 deletions test/testprotoc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ function protoc_test(files, check, envs, outdir)
println(os, "ENV[\"COVERAGE\"]=\"--code-coverage=user --inline=no\"")
end
println(os, "cd(\"$outdir\")")
println(os, "ProtoBuf.protoc(`-I=$srcdir -I=$well_known_proto_srcdir --julia_out=$outdir $srcpaths`)")

# escape ~ character in Windows temp folder names
escaped_outdir = replace(outdir, "~"=>"\\~")

println(os, "ProtoBuf.protoc(`-I=$srcdir -I=$well_known_proto_srcdir --julia_out=$escaped_outdir $srcpaths`)")
println(os, check)
end
julia_fullpath = joinpath(Sys.BINDIR, Base.julia_exename())
Expand All @@ -140,4 +144,4 @@ end
end
end
end
end
end

2 comments on commit bae7008

@tanmaykm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/49665

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.4 -m "<description of version>" bae7008107e64538c4a18d3c2238c9e61ccfa5b2
git push origin v0.11.4

Please sign in to comment.