Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions CI #2284

Merged
merged 5 commits into from
Dec 12, 2020
Merged

Conversation

patrick96
Copy link
Member

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Build Fix and CI Update

Description

This replaces travis CI with GitHub Actions. As I mentioned in #2278, we can't really use travis anymore because we ran out of credits. I have contacted the travis team, but I have not yet heard back 5 days later.

I decided to not use docker, even though it would make it easier to move CI to another provider, should we ever need/want to.
I think the overhead of having our own docker image is too high and if we just used for example the official ubuntu image, build times would be extremely high because we would need to install a bunch of packages everytime.

This also fixes some compilation issues that surfaced.

Related Issues & Documents

Closes #2278

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

The memory returned was no longer valid because arg is destructed after
the function returns.
For some reason when passing some non-const strings to convert, the
convert(T&& arg) method was used instead of the one specialized for
strings.

This caused an error in clang because you can't pass objects with
non-trivial types to varargs functions.

The best solution I found was to just add a specialized function for
non-const strings.
@codecov
Copy link

codecov bot commented Dec 12, 2020

Codecov Report

Merging #2284 (5e5e0f9) into hotfix/3.5.1 (82ebad5) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           hotfix/3.5.1   #2284      +/-   ##
===============================================
- Coverage          7.33%   7.22%   -0.11%     
===============================================
  Files               155     156       +1     
  Lines             10612   10707      +95     
===============================================
- Hits                778     774       -4     
- Misses             9834    9933      +99     
Flag Coverage Δ
unittests 7.22% <0.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/components/logger.hpp 14.28% <ø> (ø)
src/components/logger.cpp 31.81% <0.00%> (-1.52%) ⬇️
src/utils/env.cpp 0.00% <0.00%> (-40.00%) ⬇️
src/utils/string.cpp 95.23% <0.00%> (-0.83%) ⬇️
src/utils/file.cpp 30.18% <0.00%> (-0.59%) ⬇️
src/ipc.cpp 0.00% <0.00%> (ø)
src/modules/xworkspaces.cpp 0.00% <0.00%> (ø)
src/main.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82ebad5...5e5e0f9. Read the comment docs.

@patrick96 patrick96 merged commit d6148e3 into polybar:hotfix/3.5.1 Dec 12, 2020
@patrick96 patrick96 deleted the ci/github-actions branch December 12, 2020 00:43
patrick96 added a commit that referenced this pull request Dec 12, 2020
Changelog

**Features**

* config: Multiple inheritance (#2271), see #2269

**Fixes**

* (#2285), see #770, #2289
* Timer module: Polybar crash when interval is set to 0 (#2274), see #2273
* `custom/menu`: Wrong level numbers in error messages (#2264)
* `internal/xworkspaces`: Ignored certain workspace updates (#2275), see #2272
* Logger: Undefined behavior (#2284)
* build:
    * Build issues in older clang versions (#2270, #2279, #2280)
@patrick96 patrick96 mentioned this pull request Dec 12, 2020
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant